IMediaObject::Flush

This method flushes all internally buffered data.

HRESULT Flush(void);

Parameters

None.

Return Values

Returns S_OK if successful. Otherwise, it 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.

Media types, maximum latency, and locked state do not change.

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

OS Versions: Windows CE .NET 4.1 and later.
Header: Dmo.h.
Link Library: Dmoguid.lib.

See Also

IMediaObject | IMediaObject::ProcessInput | IMediaBuffer

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.