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:
Olivier Crête 2021-05-13 15:25:57 -04:00
parent 78d2d6cf6f
commit 8b595e7c8b

View file

@ -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;
}