[PATCH v2 1/2] winegstreamer: Delay duration query until caps have been acquired.
Connor McAdams
cmcadams at codeweavers.com
Wed Apr 28 11:15:25 CDT 2021
Signed-off-by: Connor McAdams <cmcadams at codeweavers.com>
---
dlls/winegstreamer/wg_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winegstreamer/wg_parser.c b/dlls/winegstreamer/wg_parser.c
index 5529321490e..f90362981df 100644
--- a/dlls/winegstreamer/wg_parser.c
+++ b/dlls/winegstreamer/wg_parser.c
@@ -1553,9 +1553,9 @@ static HRESULT CDECL wg_parser_connect(struct wg_parser *parser, uint64_t file_s
{
struct wg_parser_stream *stream = parser->streams[i];
- stream->duration = query_duration(stream->their_src);
while (!stream->has_caps && !parser->error)
pthread_cond_wait(&parser->init_cond, &parser->mutex);
+ stream->duration = query_duration(stream->their_src);
if (parser->error)
{
pthread_mutex_unlock(&parser->mutex);
--
2.25.1
More information about the wine-devel
mailing list