Microsoft DirectX 9.0

IAMTimelineSrc::GetMediaLength2

The GetMediaLength2 method retrieves the media length of this source object. This method is equivalent to IAMTimelineSrc::GetMediaLength, but takes REFTIME values.

Syntax

HRESULT GetMediaLength2(
    REFTIME *pLength
);

Parameters

pLength

Pointer to a variable that receives the media length in seconds.

Return Value

Returns one of the following HRESULT values:

Value Description
S_OK Success.
E_NOTDETERMINED Media times are not set on this object.
E_POINTER NULL pointer argument.

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