mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
validate: Error out if gst_parse_launch sets an error.
https://bugzilla.gnome.org/show_bug.cgi?id=796240
This commit is contained in:
parent
bb71fd9944
commit
683b19895e
1 changed files with 6 additions and 0 deletions
|
@ -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 ("");
|
||||
|
||||
|
|
Loading…
Reference in a new issue