IRTPDemuxFilter ::SetPinMode

[This is preliminary documentation and subject to change.]

This method is used to activate automatic mapping for a pin. A pin that has been set for automatic mapping will be assigned the first unmapped SSRC that is delivered to the RTP Demux filter that matches the minor type of the pin. Pins in this mode will continue to render that SSRC until the timeout value indicated in SetPinSourceTimeout passes without reception of any more RTP packets. At that time, the SSRC will be unmapped and the pin will map the next available packet.

HRESULT SetPinMode(
  IPin *pIPin,
  BOOL bAutomatic
);
 

Parameters

pIPin
Pointer to the IPin interface of an output pin of this filter.
bAutomatic
Specifies whether this pin should be in automatic mapping mode.

Return Values

E_HANDLE
The pin indicated by pIPin does not exist or is not an output pin.
NOERROR
The pin mode is successfully set.