IMFDeviceTransform::FlushOutputStream method (mftransform.h)

The FlushOutputStream method flushes a Device MFT’s output stream.

Syntax

HRESULT FlushOutputStream(
  [in] DWORD dwStreamIndex,
  [in] DWORD dwFlags
);

Parameters

[in] dwStreamIndex

Stream ID of the output stream which needs to be flushed.

[in] dwFlags

Must be zero.

Return value

The method returns an HRESULT. Possible values include but not limited to values given in the following table.

Return code Description
S_OK
Transitioning the stream state succeeded.
MF_E_INVALIDREQUEST
Device MFT could not support the request at this time.
MF_E_INVAILIDSTREAMNUMBER
An invalid stream ID was passed.
MF_E_INVALID_STREAM_STATE
The requested stream transition is not possible.

Remarks

This interface function helps to flush a Device MFT’s output stream.

Device MFT should drop all samples in its queues and reset all its internal data structures related to that output stream. This is equivalent to resetting the output stream. The media type and stream state must not change.

When called

When the output stream needs to be reset, device transform manager (DTM) would call this method.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703
Target Platform Windows
Header mftransform.h

See also

IMFDeviceTransform