Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMFVideoSampleAllocatorCallback::SetCallback method

Sets the callback object that receives notification whenever a video sample is returned to the allocator.

Syntax


HRESULT SetCallback(
  [in] IMFVideoSampleAllocatorNotify *pNotify
);

Parameters

pNotify [in]

A pointer to the IMFVideoSampleAllocatorNotify interface that receives notification, or NULL to remove the callback.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

To get a video sample from the allocator, call the IMFVideoSampleAllocator::AllocateSample method. When the sample is released, it returns to the pool of available samples. When this happens, the allocator invokes the IMFVideoSampleAllocatorNotify::NotifyRelease callback.

The allocator holds at most one callback pointer. Calling this method again replaces the previous callback pointer.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Mfidl.h

See also

IMFVideoSampleAllocatorCallback

 

 

Show:
© 2017 Microsoft