Microsoft DirectX 8.1 (C++)

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.

See Also