IMFSinkWriter::Flush method
Flushes one or more streams.
Syntax
HRESULT Flush(
[in] DWORD dwStreamIndex
);
Parameters
- dwStreamIndex [in]
-
The zero-based index of the stream to flush, or MF_SINK_WRITER_ALL_STREAMS to flush all of the streams.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
|
The request is invalid. |
Remarks
You must call IMFSinkWriter::BeginWriting before calling this method. Otherwise, the method returns MF_E_INVALIDREQUEST.
For each stream that is flushed, the sink writer drops all pending samples, flushes the encoder, and sends an MFSTREAMSINK_MARKER_ENDOFSEGMENT marker to the media sink.
This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.
Requirements
|
Minimum supported client |
Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Header |
|
See also