Share via


CBaseAllocator::GetFreeCount

 
Microsoft DirectShow 9.0

CBaseAllocator::GetFreeCount

The GetFreeCount method retrieves the number of media samples that are not in use.

Syntax

  HRESULT GetFreeCount(
    LONG *plBuffersFree
);

Parameters

plBuffersFree

Address of a variable that receives the number of samples that are not in use.

Return Value

Returns S_OK.

Remarks

This method implements the IMemAllocatorCallbackTemp::GetFreeCount method. The allocator does not expose the IMemAllocatorCallbackTemp interface unless the fEnableReleaseCallback flag is set to TRUE in the CBaseAllocator constructor.

Requirements

**  Header:** Declared in Amfilter.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also