Microsoft DirectX 9.0

CTransInPlaceFilter::GetMediaType

The GetMediaType method retrieves a preferred media type for the output pin.

Syntax

HRESULT GetMediaType(
    int iPosition,
    CMediaType *pMediaType
);

Parameters

iPosition

Zero-based index value.

pMediaType

Pointer to a CMediaType object that receives the media type.

Return Value

Returns E_UNEXPECTED.

Remarks

This method overrides the CTransformFilter::GetMediaType method. In the CTransInPlaceFilter class, each pin calls the opposite connected pin to enumerate preferred media types. The input pin calls the downstream filter's input pin, and the output pin calls the upstream filter's output pin. Therefore, the filter's GetMediaType method is never called.

See Also