CTransInPlaceInputPin::GetAllocator (Compact 2013)

3/26/2014

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

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CTransInPlaceInputPin Class