MFCreateTrackedSample

Creates an IMFTrackedSample object that tracks the reference counts on a video media sample.

Syntax

HRESULT MFCreateTrackedSample(
         _Outptr_ IMFTrackedSample **ppMFSample
)  

Parameters

ppMFSample
Type: Outptr IMFTrackedSample **

Receives a pointer to the IMFTrackedSample interface.

Return value

Type: HRESULT 

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

Return codes
Return code Description
S_OK The function succeeded.

Refer to Media Foundation return codes.

Requirements

Header: Declared in mfidl.h.

Library: Use mfplat.lib.