MFSampleExtension_Token attribute

Contains a pointer to the token that was provided to the IMFMediaStream::RequestSample method.

Data type

IUnknown*

Syntax

GUID MFSampleExtension_Token = {0x8294da66,0xf328,0x4805,{0xb5,0x51,0x00,0xde,0xb4,0xc5,0x7a,0x61} }  

Get/set

To get this attribute, call IMFAttributes::GetUnknown

To set this attribute, call IMFAttributes::SetUnknown

Applies to

IMFSample:

Remarks

This attribute applies to media samples. The value of the attribute is the IUnknown pointer that is passed to the pToken parameter of theIMFMediaStream::RequestSample method. The caller uses this attribute to track the status of the request.

If you are writing a custom media source, set this attribute on the sample when the media stream delivers a sample in response to the IMFMediaStream::RequestSample method, unless the value of pToken is NULL.

The GUID constant for this attribute is exported from mfuuid.lib.

Requirements

Header: Declared in mfapi.h.