From: Giovanni Mascellani Subject: [PATCH v2 3/4] winegstreamer: Only seek if it was requested by the caller. Message-Id: <20210611105356.311376-3-gmascellani@codeweavers.com> Date: Fri, 11 Jun 2021 12:53:55 +0200 In-Reply-To: <20210611105356.311376-1-gmascellani@codeweavers.com> References: <20210611105356.311376-1-gmascellani@codeweavers.com> Signed-off-by: Giovanni Mascellani --- dlls/winegstreamer/media_source.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/winegstreamer/media_source.c b/dlls/winegstreamer/media_source.c index 3e1e3001dc7..9188a350305 100644 --- a/dlls/winegstreamer/media_source.c +++ b/dlls/winegstreamer/media_source.c @@ -324,8 +324,9 @@ static void start_pipeline(struct media_source *source, struct source_async_comm source->state = SOURCE_RUNNING; - unix_funcs->wg_parser_stream_seek(source->streams[0]->wg_stream, 1.0, - position->hVal.QuadPart, 0, AM_SEEKING_AbsolutePositioning, AM_SEEKING_NoPositioning); + if (position->vt == VT_I8) + unix_funcs->wg_parser_stream_seek(source->streams[0]->wg_stream, 1.0, + position->hVal.QuadPart, 0, AM_SEEKING_AbsolutePositioning, AM_SEEKING_NoPositioning); unix_funcs->wg_parser_end_flush(source->wg_parser); } -- 2.32.0