次の方法で共有


CBaseAllocator::ReleaseBuffer (Windows Embedded CE 6.0)

1/6/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
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

See Also

Reference

CBaseAllocator Class