Module: wine Branch: master Commit: e03b98ec68806a69e17c57e6cbe2aefee4910adc URL: http://source.winehq.org/git/wine.git/?a=commit;h=e03b98ec68806a69e17c57e6cb...
Author: Paul Chitescu paulc@voip.null.ro Date: Wed Dec 23 19:55:13 2009 +0200
quartz: Only wait in IMediaEvent::WaitForCompletion if the filter is running.
---
dlls/quartz/filtergraph.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index 5377281..3e9a1da 100644 --- a/dlls/quartz/filtergraph.c +++ b/dlls/quartz/filtergraph.c @@ -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;