diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2018-05-18 11:50:18 -0400 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2018-05-18 11:53:40 -0400 |
commit | 683b19895e2cc12512f83e8557ffc42089291d45 (patch) | |
tree | b2b69ae0db772efb7d6143c8cbdbe025db5cfd92 | |
parent | bb71fd994479ddc32bcf28e5891ec4f78f97e198 (diff) |
validate: Error out if gst_parse_launch sets an error.
https://bugzilla.gnome.org/show_bug.cgi?id=796240
-rw-r--r-- | validate/tools/gst-validate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/validate/tools/gst-validate.c b/validate/tools/gst-validate.c index e8bd157..b409ed3 100644 --- a/validate/tools/gst-validate.c +++ b/validate/tools/gst-validate.c @@ -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 (""); |