Commit ee792916 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

quartz: Reset EcCompleteCount before starting filters.

This sends EC_COMPLETE notifications to the application after a graph has finished running for the second time.
parent 3d3dcc4e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment