IRTPRPHFilter::SetOutputPinMediaType

[This is preliminary documentation and subject to change.]

Set the media type of the output pin. To be used at initialization time only. Should be coordinated with OverridePayloadType.

HRESULT SetOutputPinMediaType(
  AM_MEDIA_TYPE *lpMediaPinType
);
 

Parameters

lpMediaPinType
[in] The DirectShow media type to which the output pin should be set. Generally for use with a generic payload handler.

Return Values

VFW_E_ALREADY_CONNECTED
The output pin is already connected.
VFW_E_INVALIDSUBTYPE
The media type indicated by MediaPinType does not match the list of accepted values by this filter. Minor types are defined for all RTP fixed payload types and for each possible dynamic payload type value.
NOERROR
The minor media type of the output pin has been set successfully.