CPullPin::Duration

 
Microsoft DirectShow 9.0

CPullPin::Duration

The Duration method retrieves the duration of the stream.

Syntax

  HRESULT Duration(
    REFERENCE_TIME *ptDuration
);

Parameters

ptDuration

Pointer to a variable that receives the duration, in bytes multiplied by 10,000,000.

Return Values

Returns S_OK.

Remarks

The duration is indeterminate until the CPullPin::Connect method is called.

Requirements

**  Header:** Include Pullpin.h and Streams.h.

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

See Also