Compartir a través de


CPullPin::DecideAllocator (Compact 2013)

3/26/2014

Negotiates an allocator to use with the asynchronous reader.

Syntax

virtual HRESULT DecideAllocator(
  ImemAllocator* pAlloc,
  ALLOCATOR_PROPERTIES* pProps 
);

Parameters

  • pAlloc
    Allocator to propose as the preferred allocator (optional). Pass NULL if you are not proposing an allocator.
  • pProps
    Size, count, and alignment of the allocator (optional). Pass zero if not requesting the allocator properties.

Return Value

Returns S_OK if successful, VFW_E_BADALIGN if eProps contains an invalid alignment property, E_OUTOFMEMORY if there is not enough memory available to create an allocator, and E_NOINTERFACE if the created IMemAllocator interface is invalid.

Remarks

This member function calls the IAsyncReader::RequestAllocator method to negotiate an allocator.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CPullPin Class