Share via


CDynamicOutputPin::CompleteConnect

 
Microsoft DirectShow 9.0

CDynamicOutputPin::CompleteConnect

The CompleteConnect method completes a connection to an input pin.

Syntax

  virtual HRESULT CompleteConnect(
    IPin *pReceivePin
);

Parameters

pReceivePin

Pointer to the input pin's IPin interface.

Return Value

Returns S_OK if successful, or an HRESULT value indicating the cause of the failure.

Remarks

This method overrides the CBaseOutputPin::CompleteConnect method. To support dynamic reconnections, this method commits the allocator if the filter is active. In the base class, connections can occur only when the filter is stopped, so the allocator is always committed in the CBaseOutputPin::Active method.

Requirements

**  Header:** Declared in Amfilter.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also