Поделиться через


IMediaFilter::Run (Compact 2013)

3/26/2014

This method informs the filter to transition to the new (running) state. Passes a time value to synchronize independent streams.

Syntax

HRESULT Run(
  REFERENCE_TIME tStart
);

Parameters

  • tStart
    [in] Time value of the reference clock.

Return Value

Returns an HRESULT value that depends on the implementation. HRESULT can be one of the following standard constants, or other values not listed.

Value

Description

E_FAIL

Failure.

E_POINTER

Null pointer argument.

E_INVALIDARG

Invalid argument.

E_NOTIMPL

Method is not supported.

S_OK or NOERROR

Success.

Remarks

The tStart parameter is the amount to be added to the IMediaSample time stamp to determine the time at which that sample should be rendered according to the reference clock. That is, it is the reference time at which a sample with a stream time of zero should be rendered.

For example, the time value for the beginning of the stream is the time at which the first sample should appear. If the application restarts from paused mode in midstream, tStart is the amount of time paused, plus the start time.

The filter graph provides this information to its filters. An application calling the filter graph may pass a start time of zero, in which case the filter graph calculates a time that will begin as soon as possible. Filter graphs accept zero to mean as soon as possible; most filters do not.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IMediaFilter Interface