Share via


CRendererPosPassThru::ResetMediaTime

 
Microsoft DirectShow 9.0

CRendererPosPassThru::ResetMediaTime

The ResetMediaTime method resets the cached time stamps to zero.

Syntax

  HRESULT ResetMediaTime(void);

Return Value

Returns S_OK.

Remarks

The filter should call this method whenever the time stamps cached by the CRendererPosPassThru::RegisterMediaTime method become invalid. Specifically, it should call this method in response to the IPin::EndFlush and IMediaFilter::Stop methods.

After this method is called, the CRendererPosPassThru::GetMediaTime method returns zero for the start and end times.

Requirements

**  Header:** Declared in Ctlutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also

CRendererPosPassThru Class