Microsoft Windows CE 3.0  


This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Releases the object back to the list of free objects.

HRESULT ReleaseBuffer(
IMediaSample *


Pointer to the IMediaSampleinterface of the media sample object.

Return Values

No return value.


This member function implements the IMemAllocator::ReleaseBuffermethod. It adds the sample to the free list (represented by m_lFree) and calls CBaseAllocator::NotifySampleto notify any blocked thread waiting for a free sample. If there is a pending CBaseAllocator::Decommitcall (indicated by m_bDecommitInProgress), the pure virtual CBaseAllocator::Freemember function is called to decommit memory when the last buffer is placed on the free list.