Partager via


CTransInPlaceInputPin::GetAllocator (Windows Embedded CE 6.0)

1/6/2010

Retrieves the upstream allocator.

Syntax

HRESULT GetAllocator(
  IMemAllocator** ppAllocator 
);

Parameters

  • ppAllocator
    Returned allocator.

Return Value

Returns a NOERROR if the method retrieves an allocator being used by the downstream filter.

If no such allocator exists, returns S_OK if the method retrieves an allocator being used by the output pin of the in-place transform filter.

If neither of these types of allocators can be retrieved, returns VFW_E_NO_ALLOCATOR.

Remarks

This member function overrides the CBaseInputPin::GetAllocator member function and implements the IMemInputPin::GetAllocator method.

If an allocator has been agreed upon, this member function supplies that allocator.

Otherwise, if the downstream input pin can supply an allocator, it does so.

If no allocator is available, this member function returns VFW_E_NO_ALLOCATOR.

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

CTransInPlaceInputPin Class