Share via


CBaseOutputPin::InitAllocator

 
Microsoft DirectShow 9.0

CBaseOutputPin::InitAllocator

The InitAllocator method creates a memory allocator.

Syntax

  virtual HRESULT InitAllocator(
    IMemAllocator **ppAlloc
);

Parameters

ppAlloc

Address of a variable that receives a pointer to the allocator's IMemAllocator interface.

Return Value

Returns S_OK if successful, or an error code from the CoCreateInstance function.

Remarks

If the input pin does not provide a memory allocator, the CBaseOutputPin::DecideAllocator method calls this method to create an allocator.

Requirements

**  Header:** Declared in Amfilter.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also