CMediaSample::GetMediaTime
A version of this page is also available for
4/8/2010
Retrieves the starting and ending media time.
Syntax
HRESULT GetMediaTime(
LONGLONG* pStart,
LONGLONG* pEnd
);
Parameters
- pStart
Retrieved beginning media time.
- pEnd
Retrieved ending media time.
Return Value
Returns an HRESULT value.
Remarks
This member function implements the IMediaSample::GetMediaTime method. It sets pStart to the current value of m_MediaStart and pEnd to the sum of m_MediaStart and m_MediaEnd.
If the sample has not been set, this member function returns VFW_E_MEDIA_TIME_NOT_SET.
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later |