CBaseAllocator::Alloc (Compact 2013)
3/26/2014
Allocates a media sample object.
Syntax
HRESULT Alloc(void);
Parameters
None.
Return Value
Returns an HRESULT value.
Remarks
Override this member function to allocate memory, instantiate CMediaSample objects, and add them to the free list represented by the m_lFree data member. The CMemAllocator::Alloc member function is an example of an override of this member function. It calls this member function first to ensure that allocator properties have been set.
This member function is called from the CBaseAllocator::Commit member function when entering the active state. The default implementation returns an error value if the IMemAllocator::SetProperties method has not been called yet, and checks that there are no outstanding buffers.
Requirements
Header |
dshow.h, |
Library |
ole32.lib, |