|Microsoft DirectX 9.0|
The RegisterMediaTime method caches the time stamps from the current sample.
HRESULT RegisterMediaTime( IMediaSample *pMediaSample ); HRESULT RegisterMediaTime( LONGLONG StartTime, LONGLONG EndTime );
Pointer to the IMediaSample interface of the sample.
Sample start time, in 100-nanosecond units.
Sample end time, in 100-nanosecond units.
Returns an HRESULT value. Possible values include those listed in the following table.
|VFW_E_MEDIA_TIME_NOT_SET||The sample is not time-stamped.|
This method stores the time stamps from the current sample. The CRendererPosPassThru::GetMediaTime method retrieves the same values.
The filter should call this method for each sample that it receives. The method is overloaded to accept either a pointer to the sample, or the time stamp values themselves.