IMediaSample::GetTime method (strmif.h)
GetTime method retrieves the stream times at which this sample should begin and finish.
HRESULT GetTime( REFERENCE_TIME *pTimeStart, REFERENCE_TIME *pTimeEnd );
Pointer to a variable that receives the start time.
Pointer to a variable that receives the stop time. If the sample has no stop time, the value is set to the start time plus one.
Returns an HRESULT value. Possible values include those shown in the following table.
||Success. The sample has valid start and stop times.|
||The sample has a valid start time, but no stop time.|
||The sample is not time-stamped.|
Both time values are relative to the stream time. For more information, see Time and Clocks in DirectShow.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||strmif.h (include Dshow.h)|