quartz: Reset EcCompleteCount before starting filters.

This sends EC_COMPLETE notifications to the application after a graph has
finished running for the second time.
This commit is contained in:
Maarten Lankhorst 2008-04-04 15:54:56 -07:00 committed by Alexandre Julliard
parent 3d3dcc4e07
commit ee792916e0
1 changed files with 6 additions and 0 deletions

View File

@ -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;