Поделиться через


IMemAllocator::Commit

 
Microsoft DirectShow 9.0

IMemAllocator::Commit

The Commit method allocates the buffer memory.

Syntax

  HRESULT Commit(void);

Return Values

Returns an HRESULT value. Possible values include those shown in the following table.

Return code Description
S_OK Success.
E_OUTOFMEMORY Insufficient memory.
VFW_E_SIZENOTSET Buffer requirements were not set.

Remarks

Before calling this method, call the IMemAllocator::SetProperties method to specify the buffer requirements.

You must call this method before calling the IMemAllocator::GetBuffer method.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also