Microsoft DirectX 9.0

CBaseFilter::ReconnectPin

The ReconnectPin method breaks an existing pin connection and reconnects it to the same pin, using a specified media type.

Syntax

HRESULT ReconnectPin(
    IPin *pPin,
    AM_MEDIA_TYPE const *pmt
);

Parameters

pPin

Pointer to the pin's IPin interface.

pmt

Pointer to an AM_MEDIA_TYPE structure that specifies the media type, or NULL.

Return Value

Returns an HRESULT value. Possible values include those listed in the following table.

Value Description
S_OK Success.
E_NOINTERFACE m_pGraph member variable is NULL.

Remarks

This method calls the IFilterGraph2::ReconnectEx method on the filter graph manager. If the IFilterGraph2 interface is not available, the method calls IFilterGraph::Reconnect.

See Also