Causes the stream sink to drop any samples that it has received and has not rendered yet.
HRESULT Flush( );
This method has no parameters.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded.|
||The stream sink has not been initialized yet. You might need to set a media type.|
||The media sink's Shutdown method has been called.|
||This stream was removed from the media sink and is no longer valid.|
If any samples are still queued from previous calls to the IMFStreamSink::ProcessSample method, the media sink immediately discards them, without processing them. This can cause a glitch in the rendered output. The running state of the sink (running, paused, or stopped) does not change.
Any pending marker events from the IMFStreamSink::PlaceMarker method are dispatched immediately, with the status code E_ABORT.
This method is synchronous. It does not return until the sink has discarded all pending samples.
|Minimum supported client||Windows Vista [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 [desktop apps | UWP apps]|