tools: Disable --set-scenario if not compiled against gst-validate
authorThibault Saunier <tsaunier@gnome.org>
Sat, 26 Apr 2014 07:51:37 +0000 (09:51 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 2 May 2014 14:58:42 +0000 (16:58 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=729382

tools/ges-launch.c

index 82ab3b4..237768c 100644 (file)
@@ -682,9 +682,11 @@ main (int argc, gchar ** argv)
         "Defines the track types to be created"},
     {"mute", 0, 0, G_OPTION_ARG_NONE, &mute,
         "Mute playback output, which means that we use faksinks"},
+#ifdef HAVE_GST_VALIDATE
     {"set-scenario", 0, 0, G_OPTION_ARG_STRING, &scenario,
         "Specify a GstValidate scenario to run, 'none' means load gst-validate"
           " but run no scenario on it", "<scenario_name>"},
+#endif
     {NULL}
   };