IAMTimelineObj::GetStartStop

 
Microsoft DirectShow 9.0

IAMTimelineObj::GetStartStop

The GetStartStop method retrieves the object's start and stop times, relative to the object's parent.

Syntax

  HRESULT GetStartStop(
    REFERENCE_TIME *pStart,
    REFERENCE_TIME *pStop
);

Parameters

pStart

Pointer to a variable that receives the start time, in 100-nanosecond units.

pStop

Pointer to a variable that receives the stop time, in 100-nanosecond units.

Return Value

Returns S_OK if successful, or E_POINTER otherwise.

Remarks

Compositions, groups, and tracks always have a start time of 0.

During rendering, DES rounds an object's start and stop times to the nearest frame boundary. However, DES does not overwrite the object's times. If you change the group frame rate, the rounded times are always calculated from the original times. For more information, Time in DirectShow Editing Services.

To determine the start and stop times in the rendered project, pass the values returned by GetStartStop to the IAMTimelineObj::FixTimes method.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also