validate: tools: Init gst-validate before listing scenarios

And return 0 when only listing scenarios
This commit is contained in:
Thibault Saunier 2014-02-11 23:09:57 +01:00
parent 6ab7f17386
commit efc6938d01

View file

@ -828,10 +828,13 @@ main (int argc, gchar ** argv)
g_free (scenarios);
}
if (list_scenarios)
gst_validate_init ();
if (list_scenarios) {
gst_validate_list_scenarios ();
gst_validate_init ();
return 0;
}
_register_actions ();