Share via


CTransInPlaceOutputPin::ReceiveAllocator

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Receives notification of which allocator will be used.

Syntax

HRESULT ReceiveAllocator(
  IMemAllocator* pAllocator,
  BOOL bReadOnly 
);

Parameters

  • bReadOnly
    Flag to indicate if the samples from this allocator are read-only.

Return Value

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

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