quartz: Always apply the 200 ms delay to presentation time.

This matches native (actually, native goes one step further and increases the
delay by 100 ms every time the filter is paused). Generally this makes sense,
too, as otherwise a graph that is paused and then resumed will suddenly find
itself 200 ms behind.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-07-14 19:56:24 -05:00 committed by Alexandre Julliard
parent 735c8272f5
commit a8a644c1b8
1 changed files with 3 additions and 2 deletions

View File

@ -4902,8 +4902,9 @@ static HRESULT WINAPI MediaFilter_Run(IMediaFilter *iface, REFERENCE_TIME start)
{
IReferenceClock_GetTime(graph->refClock, &graph->stream_start);
stream_start = graph->stream_start - graph->stream_elapsed;
if (graph->state == State_Stopped)
stream_start += 200 * 10000;
/* Delay presentation time by 200 ms, to give filters time to
* initialize. */
stream_start += 200 * 10000;
}
LIST_FOR_EACH_ENTRY(filter, &graph->filters, struct filter, entry)