mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-09 19:09:41 +00:00
gst-validate: initialize gst/glib before use in scenario listing
Also ensure that if just -l is passed, we don't try creating a non existent pipeline. This makes gst-validate -l work properly again.
This commit is contained in:
parent
789ea6e9d5
commit
3019586677
1 changed files with 7 additions and 3 deletions
|
@ -147,12 +147,16 @@ main (int argc, gchar ** argv)
|
|||
|
||||
g_option_context_free (ctx);
|
||||
|
||||
if (list_scenarios)
|
||||
gst_validate_list_scenarios ();
|
||||
|
||||
gst_init (&argc, &argv);
|
||||
gst_validate_init ();
|
||||
|
||||
if (list_scenarios)
|
||||
gst_validate_list_scenarios ();
|
||||
|
||||
if (argc == 1) {
|
||||
g_print ("%s", g_option_context_get_help (ctx, FALSE, NULL));
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* Create the pipeline */
|
||||
argvn = g_new0 (char *, argc);
|
||||
|
|
Loading…
Reference in a new issue