Microsoft Windows CE 3.0  

CTransInPlaceOutputPin::CheckMediaType

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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::CheckMediaTypemember function. It calls the pure virtual CTransformFilter::CheckInputTypemember 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 QueryAccepton the output pin of the upstream filter and returns the result.