次の方法で共有


CTransInPlaceInputPin::NotifyAllocator (Compact 2013)

3/26/2014

Receives notification of which allocator will be used by the connected output pin.

Syntax

HRESULT NotifyAllocator(
  IMemAllocator* pAllocator,
  BOOL bReadOnly 
);

Parameters

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

Return Value

Returns NOERROR if successful.

Returns E_POINTER if the pointer is invalid.

Otherwise, returns an error due to calling CTransInPlaceOutputPin::ReceiveAllocator.

Remarks

This member function overrides the CBaseInputPin::NotifyAllocator member function and implements the IMemInputPin::NotifyAllocator method.

This member function remembers the allocator and passes it to the output pin because they both must share the same allocator.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CTransInPlaceInputPin Class