Compartilhar via


CPosPassThru::GetDuration (Compact 2013)

3/26/2014

Retrieves the length of time that the media stream will play.

Syntax

HRESULT GetDuration(
  LONGLONG* pDuration 
);

Parameters

  • pDuration
    Returned length of the media stream.

Return Value

Returns the HRESULT value returned from calling IMediaSeeking::GetDuration on the connected pin.

Remarks

This member function implements the IMediaSeeking::GetDuration method by calling this same method on the upstream filter's output pin.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CPosPassThru Class