次の方法で共有


CTransInPlaceFilter::CompleteConnect (Windows Embedded CE 6.0)

1/6/2010

Reconnects the input or output pin if necessary.

Syntax

HRESULT CompleteConnect(
  PIN_DIRECTION direction,
  IPin* pReceivePin 
);

Parameters

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

Return Value

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

Windows Embedded CE Windows CE 2.12 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

CTransInPlaceFilter Class