Commit e03b98ec authored by Paul Chitescu's avatar Paul Chitescu Committed by Alexandre Julliard

quartz: Only wait in IMediaEvent::WaitForCompletion if the filter is running.

parent b806e130
......@@ -4899,6 +4899,9 @@ static HRESULT WINAPI MediaEvent_WaitForCompletion(IMediaEventEx *iface,
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)
{
*pEvCode = This->CompletionStatus;
......
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