Share via


CTransInPlaceOutputPin::ReceiveAllocator (Compact 2013)

3/26/2014

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

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CTransInPlaceOutputPin Class