validate: Error out if gst_parse_launch sets an error.

https://bugzilla.gnome.org/show_bug.cgi?id=796240
This commit is contained in:
Thibault Saunier 2018-05-18 11:50:18 -04:00
parent bb71fd9944
commit 683b19895e

View file

@ -437,7 +437,13 @@ main (int argc, gchar ** argv)
g_object_unref (runner);
exit (1);
} else if (err) {
g_printerr ("Erroneous pipeline: %s\n",
err->message ? err->message : "unknown reason");
g_clear_error (&err);
return 1;
}
if (!GST_IS_PIPELINE (pipeline)) {
GstElement *new_pipeline = gst_pipeline_new ("");