Microsoft DirectX 9.0 |
The SetMediaType method configures the media types that can be accepted by a particular pin.
Syntax
HRESULT SetMediaType(
ULONG ulPinId,
AM_MEDIA_TYPE* pMediaType
);
Parameters
ulPinId
[in] The identifier of the pin on which to set the media type.
pMediaType
[in] Pointer to a buffer that holds the list of media types that the pin should support.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
See Also