Share via


CRendererPosPassThru::GetMediaTime

 
Microsoft DirectShow 9.0

CRendererPosPassThru::GetMediaTime

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

Syntax

  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. Can be NULL.

Return Value

Returns an HRESULT value. Possible values include those listed in the following table.

Value Description
S_OK Success.
E_INVALIDARG Conversion to this format is not supported.
E_POINTER NULL pointer argument.

Remarks

This method overrides the CPosPassThru::GetMediaTime method. The time-stamp values are converted to the current time format by calling the CPosPassThru::ConvertTimeFormat method.

Requirements

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

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

See Also

CRendererPosPassThru Class