mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
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.
This commit is contained in:
parent
b8142bde07
commit
96b218d939
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue