mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
webrtc test: Print content of error GstMessage
Makes it easier to interpret the result of the CI! Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
This commit is contained in:
parent
78d2d6cf6f
commit
8b595e7c8b
1 changed files with 8 additions and 0 deletions
|
@ -455,6 +455,14 @@ _bus_no_errors (struct test_webrtc *t, GstBus * bus, GstMessage * msg,
|
|||
{
|
||||
switch (GST_MESSAGE_TYPE (msg)) {
|
||||
case GST_MESSAGE_ERROR:{
|
||||
GError *err = NULL;
|
||||
gchar *dbg = NULL;
|
||||
|
||||
gst_message_parse_error (msg, &err, &dbg);
|
||||
g_error ("ERROR from element %s: %s (Debugging info: %s)",
|
||||
GST_OBJECT_NAME (msg->src), err->message, (dbg) ? dbg : "none");
|
||||
g_error_free (err);
|
||||
g_free (dbg);
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue