Microsoft Windows CE 3.0  

CTransInPlaceInputPin::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
Media type being checked.

Return Values

Returns an HRESULTvalue that depends on the implementation of the owning filter's CTransformFilter::CheckInputTypemember function. HRESULTcan be one of the following standard constants, or other values not listed.

E_FAIL Failure.
E_POINTER Null pointer argument.
E_INVALIDARG Invalid argument.
E_NOTIMPL Method isn't supported.
S_OK or NOERROR Success.

Remarks

This member function overrides the CTransformInputPin::CheckMediaTypemember function. It first calls the owning filter's CheckInputTypemember function. (This is a purely virtual function which must be overridden when deriving a class from the CTransformFilterclass. The overridden CheckInputType member function determines which media types the input pin supports.) Then, if the filter's output pin is not connected, this member function agrees to any media type. If the output pin is connected, it asks the downstream connected input pin if it accepts this type and returns the result.

The CheckInputTypemember function must be overridden by the class of the owning filter.