Anton Baskanov : winegstreamer: Allow setting the stop position to the stream duration.
Module: wine Branch: master Commit: d7fecebe93938bf1ef2349ac74413e28d6b8e153 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d7fecebe93938bf1ef2349ac7... Author: Anton Baskanov <baskanov(a)gmail.com> Date: Mon Apr 26 09:51:24 2021 +0700 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 <baskanov(a)gmail.com> Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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);
participants (1)
-
Alexandre Julliard