CTransInPlaceOutputPin::ReceiveAllocator
Receives notification of which allocator will be used.
HRESULT ReceiveAllocator(
IMemAllocator* pAllocator,
BOOL bReadOnly
);
Parameters
- pAllocator
Pointer to the IMemAllocator object to use. - bReadOnly
Flag to indicate if the samples from this allocator are read-only.
Return Values
Returns NOERROR if the allocator has the correct properties and is not read-only. Returns S_OK if successful if the allocator has the correct properties but is read-only; otherwise, returns VFW_E_BADALIGN, VFW_E_ALREADY_COMMITTED, VFW_E_BUFFERS_OUTSTANDING, or E_FAIL if the allocator's properties do not match what is needed.
Remarks
This member function is called by the CTransInPlaceInputPin::NotifyAllocator member function to indicate to the output pin which allocator will be used. It is only called if the output pin is connected. The choice is propagated to input pins downstream if the allocator is not read-only. For read-only allocators, only the properties are passed downstream.
Requirements
DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.