Microsoft DirectX 9.0

IGrabberSample::GetConnectedMediaType

The implementation of this method is provided as sample code with the DirectShow SDK. It is not a supported DirectShow API.

The GetConnectedMediaType method retrieves the media type for pin connection on the Grabber filter's input pin.

Syntax

HRESULT GetConnectedMediaType(
    CMediaType *pType
);

Parameters

pType

Pointer to a CMediaType object that receives the media type.

Return Value

This method returns an HRESULT value. Possible return codes include, but are not limited to, the values shown in the following table.

Value Description
E_POINTER NULL pointer argument.
S_OK Success.
VFW_E_NOT_CONNECTED The input pin is not connected.

See Also