amstream: IAMMultiMediaStreamImpl_SetState: correct ifs.
This commit is contained in:
parent
9cb7a97981
commit
ee0bfd36ed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue