mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-06 07:28:48 +00:00
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:
parent
6bf6fe7dec
commit
e4906c7289
1 changed files with 6 additions and 2 deletions
|
@ -103,8 +103,12 @@ main (int argc, gchar ** argv)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output_file)
|
if (output_file) {
|
||||||
gst_media_descriptor_writer_write (writer, output_file);
|
if (!gst_media_descriptor_writer_write (writer, output_file)) {
|
||||||
|
ret = 1;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (expected_file) {
|
if (expected_file) {
|
||||||
reference = gst_media_descriptor_parser_new (runner, expected_file, &err);
|
reference = gst_media_descriptor_parser_new (runner, expected_file, &err);
|
||||||
|
|
Loading…
Reference in a new issue