validate:transcoding: Exit after printing the help
authorThibault Saunier <tsaunier@igalia.com>
Thu, 7 May 2020 13:05:06 +0000 (09:05 -0400)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 6 Jun 2020 06:00:11 +0000 (06:00 +0000)
Fixes CID 1455575

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/192>

validate/tools/gst-validate-transcoding.c

index fcf07da..6993b01 100644 (file)
@@ -486,6 +486,9 @@ main (int argc, gchar ** argv)
 
   g_option_context_free (ctx);
 
+  if (want_help)
+    exit (0);
+
   if (scenario || configs) {
     gchar *scenarios;