Share via


IMSVidVMR9::SetAllocator

 
Microsoft DirectShow 9.0

IMSVidVMR9::SetAllocator

This topic applies to Update Rollup 2 for Microsoft Windows XP Media Center Edition 2005.

The SetAllocator method sets a custom allocator-presenter for the VMR-9.

Syntax

  HRESULT SetAllocator(
  IUnknown*  AllocPresent,
  long  ID
);

Parameters

AllocPresent

[in]  Pointer to the IUnknown interface of the allocator-presenter. This object must expose the IVMRSurfaceAllocator9 interface. To use the VMR-9 filter's default allocator-presenter, set this parameter to NULL.

ID

[in]  Application-defined identifier for the allocator-presenter.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

None.

See Also