From d7fecebe93938bf1ef2349ac74413e28d6b8e153 Mon Sep 17 00:00:00 2001 From: Anton Baskanov Date: Mon, 26 Apr 2021 09:51:24 +0700 Subject: [PATCH] winegstreamer: Allow setting the stop position to the stream duration. Since we no longer stop the GStreamer pipeline, it does not reset the stop position for us. Fixes a hang during intro video playback in RC Cars. Signed-off-by: Anton Baskanov Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- dlls/winegstreamer/quartz_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winegstreamer/quartz_parser.c b/dlls/winegstreamer/quartz_parser.c index fbc9fd32628..e12a0c49eb3 100644 --- a/dlls/winegstreamer/quartz_parser.c +++ b/dlls/winegstreamer/quartz_parser.c @@ -875,7 +875,7 @@ static HRESULT parser_init_stream(struct strmbase_filter *iface) * it transitions from stopped -> paused. */ seeking = &filter->sources[0]->seek; - if (seeking->llStop && seeking->llStop != seeking->llDuration) + if (seeking->llStop) stop_flags = AM_SEEKING_AbsolutePositioning; unix_funcs->wg_parser_stream_seek(filter->sources[0]->wg_stream, seeking->dRate, seeking->llCurrent, seeking->llStop, AM_SEEKING_AbsolutePositioning, stop_flags);