IAMTimelineSrc::GetMediaLength

 
Microsoft DirectShow 9.0

IAMTimelineSrc::GetMediaLength

The GetMediaLength method retrieves the media length of this source object.

Syntax

  HRESULT GetMediaLength(
    REFERENCE_TIME *pLength
);

Parameters

pLength

Pointer to a variable that receives the media length in 100-nanosecond units.

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