diff options
author | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-11-02 17:25:21 -0300 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2016-11-28 10:41:30 -0300 |
commit | c0bdb3f7b8c2c6cbb6a86d337da483e402643f69 (patch) | |
tree | 5d8bd7c0a92ba85ead35a9723ca5314a3e000361 | |
parent | c08b778ee514fc3cf4354fb96930367540d16f5d (diff) |
validate: media check: Always print runner infos when bailing out.
-rw-r--r-- | validate/tools/gst-validate-media-check.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/validate/tools/gst-validate-media-check.c b/validate/tools/gst-validate-media-check.c index 838c858..47ad62b 100644 --- a/validate/tools/gst-validate-media-check.c +++ b/validate/tools/gst-validate-media-check.c @@ -144,14 +144,16 @@ main (int argc, gchar ** argv) g_free (output); } - ret = gst_validate_runner_exit (runner, TRUE); - if (ret && expected_file) { - output = gst_validate_media_descriptor_writer_serialize (writer); - g_print ("Media info:\n%s\n", output); - g_free (output); +out: + if (runner) { + ret = gst_validate_runner_exit (runner, TRUE); + if (ret && expected_file) { + output = gst_validate_media_descriptor_writer_serialize (writer); + g_print ("Media info:\n%s\n", output); + g_free (output); + } } -out: g_free (output_file); g_free (expected_file); |