summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-02-15 21:45:24 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-02-15 21:45:24 -0500
commit96b218d939223b248bbf294016effb1e7b33fdbd (patch)
tree46a3f14ef1b164a7d19bb0f6a2e502199d42cc24
parentb8142bde0703b7c60aa1e70c2da62dde6ea661ff (diff)
splitmux-test: Parse error message
The test had a function to print the error, but was not parsing it. This was causing warning about dbg_info being used uninitialized. If the test was testing any errors, this would have crashed.
-rw-r--r--tests/check/elements/splitmux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check/elements/splitmux.c b/tests/check/elements/splitmux.c
index 16e2b4312..bd7777d47 100644
--- a/tests/check/elements/splitmux.c
+++ b/tests/check/elements/splitmux.c
@@ -106,6 +106,8 @@ dump_error (GstMessage * msg)
fail_unless (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
+ gst_message_parse_error (msg, &err, &dbg_info);
+
g_printerr ("ERROR from element %s: %s\n",
GST_OBJECT_NAME (msg->src), err->message);
g_printerr ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");