Commit ee0bfd36 authored by Joris Huizer's avatar Joris Huizer Committed by Alexandre Julliard

amstream: IAMMultiMediaStreamImpl_SetState: correct ifs.

parent 9cb7a979
......@@ -191,9 +191,9 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_SetState(IAMMultiMediaStream* ifac
TRACE("(%p/%p)->(%u)\n", This, iface, new_state);
if (STREAMSTATE_RUN)
if (new_state == STREAMSTATE_RUN)
hr = IMediaControl_Run(This->media_control);
else if (STREAMSTATE_STOP)
else if (new_state == STREAMSTATE_STOP)
hr = IMediaControl_Stop(This->media_control);
return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment