CTransInPlaceOutputPin::CheckMediaType (Windows CE 5.0)

Send Feedback

Determines if the media type is acceptable.

HRESULT CheckMediaType(const CMediaType* pmt);

Parameters

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

Return Values

Returns S_OK if the pin is not connected. Otherwise, returns S_TRUE if the media type is accepted or S_FALSE if it is not.

Remarks

This member function overrides the CTransformOutputPin::CheckMediaType member function.

It calls the pure virtual CTransformFilter::CheckInputType member function to verify the media type (which you must implement in your derived class) because it does not change the media type from input to output.

If it is not connected, it returns S_OK, which agrees to any media type; otherwise, it calls QueryAccept on the output pin of the upstream filter and returns the result.

Requirements

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

For 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.