CBasePin::CheckMediaType (Windows CE 5.0)

Send Feedback

This member function is used to verify whether a media type is supported on a pin.

virtual HRESULT CheckMediaType(const CMediaType* pmt) PURE;

Parameters

  • pmt
    Pointer to a media type object containing the proposed media type.

Return Values

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

DirectShow applications and DirectShow filters have different include file and link library requirements.

Fore more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.