From e4906c72899e485f674ce818181306875201ad92 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Mon, 20 Jul 2015 17:27:56 +0900 Subject: [PATCH] validate:launcher: return on error cases properly When folder name contains spaces during --medias-paths, it does not create the media info, but still it shows as passed. Returing failed during this case https://bugzilla.gnome.org/show_bug.cgi?id=752611 --- validate/tools/gst-validate-media-check.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/validate/tools/gst-validate-media-check.c b/validate/tools/gst-validate-media-check.c index 2b4f6de952..5bfe11d5eb 100644 --- a/validate/tools/gst-validate-media-check.c +++ b/validate/tools/gst-validate-media-check.c @@ -103,8 +103,12 @@ main (int argc, gchar ** argv) goto out; } - if (output_file) - gst_media_descriptor_writer_write (writer, output_file); + if (output_file) { + if (!gst_media_descriptor_writer_write (writer, output_file)) { + ret = 1; + goto out; + } + } if (expected_file) { reference = gst_media_descriptor_parser_new (runner, expected_file, &err);