Microsoft DirectX 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.

See Also