mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
[MOVED FROM BAD 26/29] shapewipe: Print some more details on error/warning messages
This commit is contained in:
parent
6e086c8e2f
commit
a59bc8a240
1 changed files with 14 additions and 2 deletions
|
@ -27,14 +27,26 @@ on_message (GstBus * bus, GstMessage * message, gpointer user_data)
|
||||||
GMainLoop *loop = (GMainLoop *) user_data;
|
GMainLoop *loop = (GMainLoop *) user_data;
|
||||||
|
|
||||||
switch (GST_MESSAGE_TYPE (message)) {
|
switch (GST_MESSAGE_TYPE (message)) {
|
||||||
case GST_MESSAGE_ERROR:
|
case GST_MESSAGE_ERROR:{
|
||||||
|
GError *err = NULL;
|
||||||
|
gchar *debug = NULL;
|
||||||
|
|
||||||
g_warning ("Got ERROR");
|
g_warning ("Got ERROR");
|
||||||
|
gst_message_parse_error (message, &err, &debug);
|
||||||
|
g_warning ("%s: %s", err->message, debug);
|
||||||
g_main_loop_quit (loop);
|
g_main_loop_quit (loop);
|
||||||
break;
|
break;
|
||||||
case GST_MESSAGE_WARNING:
|
}
|
||||||
|
case GST_MESSAGE_WARNING:{
|
||||||
|
GError *err = NULL;
|
||||||
|
gchar *debug = NULL;
|
||||||
|
|
||||||
g_warning ("Got WARNING");
|
g_warning ("Got WARNING");
|
||||||
|
gst_message_parse_error (message, &err, &debug);
|
||||||
|
g_warning ("%s: %s", err->message, debug);
|
||||||
g_main_loop_quit (loop);
|
g_main_loop_quit (loop);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case GST_MESSAGE_EOS:
|
case GST_MESSAGE_EOS:
|
||||||
g_main_loop_quit (loop);
|
g_main_loop_quit (loop);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue