mirror of
https://github.com/reactos/wine.git
synced 2025-03-03 18:28:58 +00:00
quartz: Only wait in IMediaEvent::WaitForCompletion if the filter is running.
This commit is contained in:
parent
b806e13001
commit
e03b98ec68
@ -4899,6 +4899,9 @@ static HRESULT WINAPI MediaEvent_WaitForCompletion(IMediaEventEx *iface,
|
|||||||
|
|
||||||
TRACE("(%p/%p)->(%d, %p)\n", This, iface, msTimeout, pEvCode);
|
TRACE("(%p/%p)->(%d, %p)\n", This, iface, msTimeout, pEvCode);
|
||||||
|
|
||||||
|
if (This->state != State_Running)
|
||||||
|
return VFW_E_WRONG_STATE;
|
||||||
|
|
||||||
if (WaitForSingleObject(This->hEventCompletion, msTimeout) == WAIT_OBJECT_0)
|
if (WaitForSingleObject(This->hEventCompletion, msTimeout) == WAIT_OBJECT_0)
|
||||||
{
|
{
|
||||||
*pEvCode = This->CompletionStatus;
|
*pEvCode = This->CompletionStatus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user