Share via


CBaseMediaFilter::GetState (Compact 2013)

3/26/2014

Retrieves the current state of the filter.

Syntax

HRESULT GetState(
  DWORD dwMilliSecsTimeout,
  FILTER_STATE* State
);

Parameters

  • dwMilliSecsTimeout
    Duration of the time-out, in milliseconds.
  • State
    Returned state of the filter.

Return Value

Returns S_OK.

Remarks

This member function implements the IMediaFilter::GetState method. It returns the value of the m_State data member.

Filters should derive their filters from CBaseFilter and not from CBaseMediaFilter, so filters will not likely use this member function. Use CBaseFilter::GetState instead.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CBaseMediaFilter Class