CPosPassThru::GetMediaTime

 
Microsoft DirectShow 9.0

CPosPassThru::GetMediaTime

The GetMediaTime method retrieves the time stamps on the current sample.

Syntax

  virtual HRESULT GetMediaTime(
    LONGLONG *pStartTime,
    LONGLONG *pEndTime
);

Parameters

pStartTime

Pointer to a variable that receives the start time, in units of the current time format.

pEndTime

Pointer to a variable that receives the end time, in units of the current time format.

Return Value

Returns E_FAIL.

Remarks

Override this method if your filter caches the time stamps on the samples it receives.

Requirements

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

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

See Also