From ee792916e0b33de1f65499d01ff5f48416fd271d Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Fri, 4 Apr 2008 15:54:56 -0700 Subject: [PATCH] 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 file changed, 6 insertions(+) diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index 7c0055224a5..1c0acc743fe 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;