Share via


CPosPassThru::get_Duration

 
Microsoft DirectShow 9.0

CPosPassThru::get_Duration

The get_Duration method retrieves the duration of the stream. This method implements the IMediaPosition::get_Duration method.

Syntax

  HRESULT get_Duration(
    REFTIME *plength
);

Parameters

plength

Pointer to a variable that receives the total stream length, in seconds.

Return Value

Returns the HRESULT value from the connected pin.

Requirements

**  Header:** Declared in Ctlutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also