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:
parent
735c8272f5
commit
a8a644c1b8
|
@ -4902,8 +4902,9 @@ static HRESULT WINAPI MediaFilter_Run(IMediaFilter *iface, REFERENCE_TIME start)
|
||||||
{
|
{
|
||||||
IReferenceClock_GetTime(graph->refClock, &graph->stream_start);
|
IReferenceClock_GetTime(graph->refClock, &graph->stream_start);
|
||||||
stream_start = graph->stream_start - graph->stream_elapsed;
|
stream_start = graph->stream_start - graph->stream_elapsed;
|
||||||
if (graph->state == State_Stopped)
|
/* Delay presentation time by 200 ms, to give filters time to
|
||||||
stream_start += 200 * 10000;
|
* initialize. */
|
||||||
|
stream_start += 200 * 10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
LIST_FOR_EACH_ENTRY(filter, &graph->filters, struct filter, entry)
|
LIST_FOR_EACH_ENTRY(filter, &graph->filters, struct filter, entry)
|
||||||
|
|
Loading…
Reference in New Issue