[PATCH 3/5] winegstreamer: Store the stream duration also in the wg_parser_stream structure.

Zebediah Figura z.figura12 at gmail.com
Thu Feb 4 17:15:01 CST 2021


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/winegstreamer/gstdemux.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index d9cc072a8c7..a63e91c9a65 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -110,6 +110,8 @@ struct wg_parser_stream
     struct wg_parser_event event;
 
     bool flushing, eos, enabled;
+
+    uint64_t duration;
 };
 
 struct parser
@@ -1638,7 +1640,8 @@ static HRESULT GST_Connect(struct parser *This, IPin *pConnectPin)
         struct parser_source *pin = This->sources[i];
         struct wg_parser_stream *stream = pin->wg_stream;
 
-        pin->seek.llDuration = pin->seek.llStop = query_duration(stream->their_src);
+        stream->duration = query_duration(stream->their_src);
+        pin->seek.llDuration = pin->seek.llStop = stream->duration;
         pin->seek.llCurrent = 0;
         while (!stream->caps && !parser->error)
             pthread_cond_wait(&parser->init_cond, &parser->mutex);
-- 
2.30.0




More information about the wine-devel mailing list