Partager via


CSourceStream::CheckMediaType (Compact 2013)

3/26/2014

Determines if this pin supports the supplied media type.

Syntax

virtual HRESULT CheckMediaType(
  CMediaType* pMediaType 
);

Parameters

  • pMediaType
    Media type to check.

Return Value

Returns S_OK if the media type is supported, S_FALSE if it is not, or E_INVALIDARG if pMediaType is invalid.

Remarks

Override this member function if you support multiple media types. Test explicitly for S_OK to determine if this function succeeded; do not use the SUCCEEDED macro.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CSourceStream Class