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 |
---|---|
|
Transitioning the stream state succeeded. |
|
Device MFT could not support the request at this time. |
|
An invalid stream ID was passed. |
|
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 |