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
This commit is contained in:
Vineeth TM 2015-07-20 17:27:56 +09:00 committed by Luis de Bethencourt
parent 6bf6fe7dec
commit e4906c7289

View file

@ -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);