Microsoft DirectX 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.

See Also