CBaseAllocator::ReleaseBuffer
A version of this page is also available for
4/8/2010
Releases the object back to the list of free objects.
Syntax
HRESULT ReleaseBuffer(
IMediaSample* pSample
);
Parameters
- pSample
Pointer to the IMediaSample interface of the media sample object.
Return Value
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
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later |