summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2021-05-13 15:25:57 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2021-05-13 16:37:31 -0400
commit8b595e7c8b8a56698e6dd590ccc4f43e0af5b0b4 (patch)
tree92bd15b334e8b50f87cfffeae2cb869f674fdca8 /tests
parent78d2d6cf6fab12c558d102357f83fcb3bb718a2d (diff)
downloadgstreamer-plugins-bad-8b595e7c8b8a56698e6dd590ccc4f43e0af5b0b4.tar.gz
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/webrtcbin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/check/elements/webrtcbin.c b/tests/check/elements/webrtcbin.c
index 2f4ff646c..405886ee3 100644
--- a/tests/check/elements/webrtcbin.c
+++ b/tests/check/elements/webrtcbin.c
@@ -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;
}