CBaseOutputPin::DecideAllocator (Windows CE 5.0)

Send Feedback

Negotiates the allocator to use.

virtual HRESULT DecideAllocator(IMemInputPin* pPin,IMemAllocator** pAlloc);

Parameters

  • pPin
    Pointer to the IPin interface of the connecting pin.
  • pAlloc
    Pointer to the negotiated IMemAllocator interface.

Return Values

Returns NOERROR if successful; otherwise, returns an HRESULT value.

Remarks

This member function calls the CBaseOutputPin::DecideBufferSize member function, which is not implemented by this base class.

To call IMemAllocator::SetProperties, override DecideBufferSize.

If the connected input pin fails a call to IMemInputPin::GetAllocator, this member function constructs a CMemAllocator object and calls CBaseOutputPin::DecideBufferSize on that object.

If the call to DecideBufferSize succeeds, this member function notifies the input pin of the selected allocator.

This function is called by the base class implementation of the IPin::Connect method, which is responsible for locking the object's critical section.

To use your own allocator, override this member function.

The input pin gets the first choice for the allocator, and the output pin agrees or forces it to use another allocator.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.