tools: Initialize GStreamer before parsin options

We need it to be initialized to be able to parse our options
This commit is contained in:
Thibault Saunier 2019-05-23 16:58:25 -04:00
parent ed9cbfed92
commit 92fdae7cf0

View 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);