IMediaObject::Flush method
The Flush method flushes all internally buffered data.
Syntax
HRESULT Flush();
Parameters
This method has no parameters.
Return value
Returns S_OK if successful. Otherwise, returns an HRESULT value indicating the cause of the error.
Remarks
The DMO performs the following actions when this method is called:
- Releases any IMediaBuffer references it holds.
- Discards any values that specify the time stamp or sample length for a media buffer.
- Reinitializes any internal states that depend on the contents of a media sample.
When the method returns, every input stream accepts data. Output streams cannot produce any data until the application calls the IMediaObject::ProcessInput method on at least one input stream.
Requirements
| Target Platform | Windows |
| Header | mediaobj.h (include Dmo.h) |
| Library | Dmoguids.lib |