Export (0) Print
Expand All

CTransInPlaceInputPin.GetAllocator method

The GetAllocator method retrieves the memory allocator proposed by this pin. This method implements the IMemInputPin::GetAllocator method.

Syntax


HRESULT GetAllocator(
  IMemAllocator **ppAllocator
);

Parameters

ppAllocator

Receives a pointer to the allocator's IMemAllocator interface.

Return value

Returns an HRESULT value. Possible values include those shown in the following table.

Return codeDescription
S_OK

Success.

VFW_E_NO_ALLOCATOR

No allocator is available.

 

Remarks

If the filter's output pin is connected, this method requests an allocator from the downstream filter's input pin.

If the filter's output pin is not connected, this method creates a temporary allocator. Later, when the output pin is connected, the filter will reconnect the input pin and renegotiate the allocator.

Requirements

Header

Transip.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CTransInPlaceInputPin Class

 

 

Community Additions

ADD
Show:
© 2014 Microsoft