次の方法で共有


CMediaSample::GetMediaTime (Windows Embedded CE 6.0)

1/6/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
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

See Also

Reference

CMediaSample Class