CBasePin::CheckMediaType
A version of this page is also available for
4/8/2010
This member function is used to verify whether a media type is supported on a pin.
Syntax
virtual HRESULT CheckMediaType(
const CMediaType* pmt
) PURE;
Parameters
- pmt
Pointer to a media type object containing the proposed media type.
Return Value
The overriding member function should return S_OK if the proposed media type is accepted; otherwise, it should return an HRESULT failure value, such as S_FALSE.
Remarks
This member function is typically called before calling the CBasePin::SetMediaType member function.
It is also called from several other member functions, including CBasePin::ReceiveConnection and CBasePin::QueryAccept.
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later |