Maarten Lankhorst : quartz: Reset EcCompleteCount before starting filters.

Alexandre Julliard julliard at winehq.org
Mon Apr 7 06:50:33 CDT 2008


Module: wine
Branch: master
Commit: ee792916e0b33de1f65499d01ff5f48416fd271d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ee792916e0b33de1f65499d01ff5f48416fd271d

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Fri Apr  4 15:54:56 2008 -0700

quartz: Reset EcCompleteCount before starting filters.

This sends EC_COMPLETE notifications to the application after a graph has
finished running for the second time.

---

 dlls/quartz/filtergraph.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index 7c00552..1c0acc7 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -1570,6 +1570,9 @@ static HRESULT WINAPI MediaControl_Run(IMediaControl *iface) {
     if (This->state == State_Running) return S_OK;
 
     EnterCriticalSection(&This->cs);
+    if (This->state == State_Stopped)
+        This->EcCompleteCount = 0;
+
     if (This->refClock)
     {
         IReferenceClock_GetTime(This->refClock, &This->start_time);
@@ -1590,6 +1593,9 @@ static HRESULT WINAPI MediaControl_Pause(IMediaControl *iface) {
     if (This->state == State_Paused) return S_OK;
 
     EnterCriticalSection(&This->cs);
+    if (This->state == State_Stopped)
+        This->EcCompleteCount = 0;
+
     if (This->state == State_Running && This->refClock)
     {
         LONGLONG time = This->start_time;




More information about the wine-cvs mailing list