Compartilhar via


CBaseRenderer::CompleteStateChange

 
Microsoft DirectShow 9.0

CBaseRenderer::CompleteStateChange

The CompleteStateChange method determines whether a transition to the paused state is complete.

Syntax

  virtual HRESULT CompleteStateChange(
    FILTER_STATE OldState
);

Parameters

OldState

State prior to the transition.

Return Value

Returns S_OK if the transition is complete. Otherwise, returns S_FALSE.

Remarks

The CBaseRenderer::Pause method calls this method to update the state-transition status. In general, the transition to paused does not finish until the filter receives a sample. However, in some situations the transition completes immediately: for example, if the filter is unconnected, or if the end of the stream was reached. This method checks the various criteria and then calls the CBaseRenderer::Ready method or the CBaseRenderer::NotReady method to update the transition status.

Requirements

**  Header:** Declared in Renbase.h; include Streams.h.

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

See Also