Microsoft Windows CE 3.0  

CMediaSample::GetMediaTime

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Retrieves the starting and ending media time.

HRESULT GetMediaTime(
LONGLONG* 
pStart, 
LONGLONG* 
pEnd
);

Parameters

pStart
Retrieved beginning media time.
pEnd
Retrieved ending media time.

Return Values

Returns an HRESULTvalue.

Remarks

This member function implements the IMediaSample::GetMediaTimemethod. It sets pStartto the current value of m_MediaStartand pEndto the sum of m_MediaStartand m_MediaEnd. If the sample has not been set, this member function returns VFW_E_MEDIA_TIME_NOT_SET.