[PATCH 2/2] quartz: Reset state change after flushing

Maarten Lankhorst m.b.lankhorst at gmail.com
Wed Nov 10 17:14:19 CST 2010


This fixes IBasicVideo:GetCurrentImage
---
 dlls/quartz/videorenderer.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c
index 5fbedaf..e1cef40 100644
--- a/dlls/quartz/videorenderer.c
+++ b/dlls/quartz/videorenderer.c
@@ -944,8 +944,10 @@ static HRESULT WINAPI VideoRenderer_InputPin_EndFlush(IPin * iface)
     TRACE("(%p/%p)->()\n", This, iface);
 
     EnterCriticalSection(This->pin.pCritSec);
-    if (pVideoRenderer->filter.state == State_Paused)
+    if (pVideoRenderer->filter.state == State_Paused) {
         ResetEvent(pVideoRenderer->blocked);
+        ResetEvent(pVideoRenderer->hEvent);
+    }
 
     QualityControlRender_Start(&pVideoRenderer->qcimpl, pVideoRenderer->filter.rtStreamStart);
     hr = BaseInputPinImpl_EndFlush(iface);
-- 
1.7.1




More information about the wine-patches mailing list