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@gmail.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Anton Baskanov 2021-04-26 09:51:24 +07:00 committed by Alexandre Julliard
parent ad5342b87c
commit d7fecebe93
1 changed files with 1 additions and 1 deletions

View File

@ -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);