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

quartz: Pass the reference time + small delay on on begin of playback.

parent 366eca51
......@@ -1478,7 +1478,22 @@ static HRESULT ExploreGraph(IFilterGraphImpl* pGraph, IPin* pOutputPin, fnFoundF
}
static HRESULT WINAPI SendRun(IBaseFilter *pFilter) {
return IBaseFilter_Run(pFilter, 0);
LONGLONG time = 0;
IReferenceClock *clock = NULL;
IBaseFilter_GetSyncSource(pFilter, &clock);
if (clock)
{
IReferenceClock_GetTime(clock, &time);
if (time)
/* Add 50 ms */
time += 500000;
if (time < 0)
time = 0;
IReferenceClock_Release(clock);
}
return IBaseFilter_Run(pFilter, time);
}
static HRESULT WINAPI SendPause(IBaseFilter *pFilter) {
......
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