IVMRSurfaceAllocator::AdviseNotify

 
Microsoft DirectShow 9.0

IVMRSurfaceAllocator::AdviseNotify

The AdviseNotify method provides the allocator-presenter with the VMR-7 filter's interface for notification callbacks. If you are using a custom allocator-presenter, the application must call this method on the allocator-presenter, with a pointer to the VMR's IVMRSurfaceAllocatorNotify interface. The allocator-presenter uses this interface to communicate with the VMR.

If you are not using a custom allocator-presenter, the application does not have to call this method.

Syntax

  HRESULT AdviseNotify(

  
  IVMRSurfaceAllocatorNotify*
  
  lpIVMRSurfAllocNotify

  );

Parameters

lpIVMRSurfAllocNotify

[in]  Specifies the IVMRSurfaceAllocatorNotify interface pointer that the allocator-presenter will use to pass notifications back to the VMR.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also