다음을 통해 공유


CTransInPlaceFilter::CompleteConnect (Windows CE 5.0)

Send Feedback

Reconnects the input or output pin if necessary.

HRESULT CompleteConnect(PIN_DIRECTIONdirection,IPin* pReceivePin);

Parameters

  • direction
    Pin direction.
  • pReceivePin
    Pointer to the output pin to which to connect.

Return Values

Returns NOERROR if successful; otherwise, returns VFW_E_NOT_IN_GRAPH if the filter is not part of a graph, or returns an HRESULT that indicates the error.

HRESULT can be one of the following standard constants, or other values not listed.

Value Description
E_FAIL Failure.
E_POINTER Null pointer argument.
E_INVALIDARG Invalid argument.
E_NOTIMPL Method is not supported.

Remarks

This member function overrides the CTransformFilter::CompleteConnect member function. It is called by one of the pin classes at the end of a successful connection.

Because the input and output pins must both use the same allocator, this member function reconnects the opposite pin if necessary.

When the input pin is first connected, the output pin has not yet been connected and the downstream filter's allocator is unknown, so the allocator for the input pin is chosen to be the upstream pin's allocator.

However, when the transform filter's output pin is connected, it has access to the downstream filter's allocator and should force a reconnect on the input pin and offer that allocator.

When the input pin is reconnected, it forces a reconnect on the output pin if the allocator chosen for the input pin's connection differs from the output pin's connection.

This member function supplies the reconnection for either output or input pins.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.