Microsoft DirectX 9.0 |
The SetMediaType method sets the media type for the connection.
Syntax
HRESULT SetMediaType(
const CMediaType *mt
);
Parameters
mt
Pointer to a CMediaType object that specifies the media type.
Return Value
Returns S_OK.
Remarks
This method overrides the CBasePin::SetMediaType method. It calls the filter's CTransformFilter::SetMediaType method to inform the filter.
The pin must verify that the media type is acceptable before calling this method.
See Also