Share via


CMediaSample::SetMediaTime (Compact 2013)

3/26/2014

Sets the starting and ending media times.

Syntax

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

Parameters

  • pStart
    Beginning media time.
  • pEnd
    Ending media time.

Return Value

Returns an HRESULT value.

Remarks

This member function implements the IMediaSample::SetMediaTime method.

It sets the m_MediaStart data member to the value of pStart and the m_MediaEnd data member to the value of pEnd minus pStart.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CMediaSample Class