METransformDrainComplete event

Sent by an asynchronous Media Foundation transform (MFT) when a drain operation is complete.

Event values

Possible values retrieved from IMFMediaEvent::GetValue include the following.

VARTYPE Description
VT_EMPTY
No event data.

Attributes

The following attributes are defined for this event.

Attribute Description
MF_EVENT_MFT_INPUT_STREAM_ID
The identifier of the stream that was drained.
(Required)

Remarks

Asynchronous MFTs send this event through the IMFMediaEventGenerator interface. Synchronous MFTs never send this event.

To drain an MFT, call IMFTransform::ProcessMessage with the MFT_MESSAGE_COMMAND_DRAIN message. Specify the input stream to drain in the ulParam parameter. When the drain operation is completed, an asynchronous MFT sends the METransformDrainComplete event. The MF_EVENT_MFT_INPUT_STREAM_ID attribute of the event contains the stream identifier given in the ulParam parameter.

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
Mfobjects.h (include Mfidl.h)

See also

Media Foundation Events

Asynchronous MFTs