Zebediah Figura : winegstreamer: Move the "eos" field to struct wg_parser_stream.
Alexandre Julliard
julliard at winehq.org
Thu Feb 4 16:15:18 CST 2021
Module: wine
Branch: master
Commit: c7117240748d4ad79a6b5cf19f2d326c1f37fb5e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c7117240748d4ad79a6b5cf19f2d326c1f37fb5e
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Wed Feb 3 17:41:39 2021 -0600
winegstreamer: Move the "eos" field to struct wg_parser_stream.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winegstreamer/gstdemux.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index eaad0f56133..6aadeb29175 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -105,6 +105,8 @@ struct wg_parser_stream
pthread_cond_t event_cond, event_empty_cond;
struct wg_parser_event event;
+
+ bool eos;
};
struct parser
@@ -147,7 +149,7 @@ struct parser_source
SourceSeeking seek;
CRITICAL_SECTION flushing_cs;
- bool flushing, eos;
+ bool flushing;
HANDLE thread;
};
@@ -784,7 +786,7 @@ static gboolean event_sink(GstPad *pad, GstObject *parent, GstEvent *event)
else
{
pthread_mutex_lock(&parser->mutex);
- pin->eos = true;
+ stream->eos = true;
pthread_mutex_unlock(&parser->mutex);
pthread_cond_signal(&parser->init_cond);
}
@@ -2927,7 +2929,7 @@ static BOOL mpeg_splitter_init_gst(struct parser *filter)
}
pthread_mutex_lock(&parser->mutex);
- while (!parser->has_duration && !parser->error && !pin->eos)
+ while (!parser->has_duration && !parser->error && !stream->eos)
pthread_cond_wait(&parser->init_cond, &parser->mutex);
if (parser->error)
{
More information about the wine-cvs
mailing list