tools: Initialize GStreamer before parsin options
authorThibault Saunier <tsaunier@igalia.com>
Thu, 23 May 2019 20:58:25 +0000 (16:58 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 23 May 2019 21:16:27 +0000 (17:16 -0400)
We need it to be initialized to be able to parse our options

tools/ges-launcher.c

index b1b24f2..ee71c2e 100644 (file)
@@ -748,6 +748,7 @@ _local_command_line (GApplication * application, gchar ** arguments[],
   argc = g_strv_length (argv);
   *exit_status = 0;
 
+  gst_init (&argc, &argv);
   if (!g_option_context_parse (ctx, &argc, &argv, &error)) {
     gst_init (NULL, NULL);
     g_printerr ("Error initializing: %s\n", error->message);