From 96b218d939223b248bbf294016effb1e7b33fdbd Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sun, 15 Feb 2015 21:45:24 -0500 Subject: [PATCH] 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. --- tests/check/elements/splitmux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/check/elements/splitmux.c b/tests/check/elements/splitmux.c index 16e2b4312a..bd7777d47e 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");