CImageDisplay::CheckMediaType
Microsoft DirectShow 9.0 |
CImageDisplay::CheckMediaType
The CheckMediaType method determines whether a proposed media type is compatible with the display format.
Syntax
HRESULT CheckMediaType( const CMediaType *pmtIn );
Parameters
pmtIn
Pointer to a CMediaType object that contains the media type.
Return Value
Returns an HRESULT value. Possible values include the following.
Value | Description |
E_FAIL | Invalid media type. |
E_INVALIDARG | Invalid media type. |
S_OK | The media type is compatible. |
Requirements
** Header:** Declared in Winutil.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also