From 683b19895e2cc12512f83e8557ffc42089291d45 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 18 May 2018 11:50:18 -0400 Subject: validate: Error out if gst_parse_launch sets an error. https://bugzilla.gnome.org/show_bug.cgi?id=796240 --- validate/tools/gst-validate.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 (""); -- cgit v1.2.3