splitmux-test: Parse error message
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Mon, 16 Feb 2015 02:45:24 +0000 (21:45 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Mon, 16 Feb 2015 02:45:24 +0000 (21:45 -0500)
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

index 16e2b43..bd7777d 100644 (file)
@@ -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");