amstream: IAMMultiMediaStreamImpl_SetState: correct ifs.

This commit is contained in:
Joris Huizer 2012-04-04 21:18:00 +02:00 committed by Alexandre Julliard
parent 9cb7a97981
commit ee0bfd36ed
1 changed files with 2 additions and 2 deletions

View File

@ -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;