FILTER_STATE enumeration (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Specifies a filter's state or the state of the filter graph.

Syntax

typedef enum _FilterState {
  State_Stopped = 0,
  State_Paused,
  State_Running
} FILTER_STATE;

Constants

 
State_Stopped
Value: 0
Stopped. The filter is not processing data.
State_Paused
Paused. The filter is processing data, but not rendering it.
State_Running
Running. The filter is processing and rendering data.

Requirements

Requirement Value
Header strmif.h (include Dshow.h)

See also

Data Flow in the Filter Graph

DirectShow Enumerated Types

IMediaControl::GetState

IMediaFilter::GetState