Zebediah Figura : winegstreamer: Store the stream duration also in the wg_parser_stream structure.
Alexandre Julliard
julliard at winehq.org
Fri Feb 5 16:50:48 CST 2021
Module: wine
Branch: master
Commit: 42dc1e93b214bb41e6524d49196e6413b5ffc735
URL: https://source.winehq.org/git/wine.git/?a=commit;h=42dc1e93b214bb41e6524d49196e6413b5ffc735
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Feb 4 20:53:39 2021 -0600
winegstreamer: Store the stream duration also in the wg_parser_stream structure.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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);
More information about the wine-cvs
mailing list