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

This commit is contained in:
Paul Chitescu 2009-12-23 19:55:13 +02:00 committed by Alexandre Julliard
parent b806e13001
commit e03b98ec68
1 changed files with 3 additions and 0 deletions

View File

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