Zebediah Figura : winegstreamer: Avoid using Wine debug functions in watch_bus().
Alexandre Julliard
julliard at winehq.org
Fri Jan 22 15:59:14 CST 2021
Module: wine
Branch: master
Commit: 871c5673d95ebf685f6a4f34e16e3abf2eb98d53
URL: https://source.winehq.org/git/wine.git/?a=commit;h=871c5673d95ebf685f6a4f34e16e3abf2eb98d53
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Jan 21 17:22:54 2021 -0600
winegstreamer: Avoid using Wine debug functions in watch_bus().
They depend on a valid TEB and can't be called from non-Wine threads.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winegstreamer/gstdemux.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index bab9804bdbd..4653536afcc 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1431,14 +1431,14 @@ static GstBusSyncReply watch_bus(GstBus *bus, GstMessage *msg, gpointer data)
GError *err = NULL;
gchar *dbg_info = NULL;
- TRACE("filter %p, message type %s.\n", filter, GST_MESSAGE_TYPE_NAME(msg));
+ GST_DEBUG("filter %p, message type %s.", filter, GST_MESSAGE_TYPE_NAME(msg));
switch (msg->type)
{
case GST_MESSAGE_ERROR:
gst_message_parse_error(msg, &err, &dbg_info);
- ERR("%s: %s\n", GST_OBJECT_NAME(msg->src), err->message);
- ERR("%s\n", dbg_info);
+ fprintf(stderr, "winegstreamer: error: %s: %s\n", GST_OBJECT_NAME(msg->src), err->message);
+ fprintf(stderr, "winegstreamer: error: %s: %s\n", GST_OBJECT_NAME(msg->src), dbg_info);
g_error_free(err);
g_free(dbg_info);
pthread_mutex_lock(&filter->mutex);
@@ -1449,8 +1449,8 @@ static GstBusSyncReply watch_bus(GstBus *bus, GstMessage *msg, gpointer data)
case GST_MESSAGE_WARNING:
gst_message_parse_warning(msg, &err, &dbg_info);
- WARN("%s: %s\n", GST_OBJECT_NAME(msg->src), err->message);
- WARN("%s\n", dbg_info);
+ fprintf(stderr, "winegstreamer: warning: %s: %s\n", GST_OBJECT_NAME(msg->src), err->message);
+ fprintf(stderr, "winegstreamer: warning: %s: %s\n", GST_OBJECT_NAME(msg->src), dbg_info);
g_error_free(err);
g_free(dbg_info);
break;
More information about the wine-cvs
mailing list