CBaseAllocator::ReleaseBuffer (Windows CE 5.0)

Send Feedback

Releases the object back to the list of free objects.

HRESULT ReleaseBuffer(IMediaSample* pSample);

Parameters

  • pSample
    Pointer to the IMediaSample interface of the media sample object.

Return Values

None.

Remarks

This member function implements the IMemAllocator::ReleaseBuffer method.

It adds the sample to the free list (represented by m_lFree) and calls CBaseAllocator::NotifySample to notify any blocked thread waiting for a free sample.

If there is a pending CBaseAllocator::Decommit call (indicated by m_bDecommitInProgress), the pure virtual CBaseAllocator::Free member function is called to decommit memory when the last buffer is placed on the free list.

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.