g_setprgname is implicitly called by g_option_context_new() with a check
to see if it's been set already.
Fixes bug #604093.
if (!g_thread_supported ())
g_thread_init (NULL);
+ gst_tools_print_version ("gst-inspect");
+
#ifndef GST_DISABLE_OPTION_PARSING
ctx = g_option_context_new ("[ELEMENT-NAME | PLUGIN-NAME]");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
gst_init (&argc, &argv);
#endif
- gst_tools_print_version ("gst-inspect");
-
if (print_all && argc > 1) {
g_print ("-a requires no extra arguments\n");
return 1;
if (!g_thread_supported ())
g_thread_init (NULL);
+ gst_tools_print_version ("gst-launch");
+
#ifndef GST_DISABLE_OPTION_PARSING
ctx = g_option_context_new ("PIPELINE-DESCRIPTION");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
gst_init (&argc, &argv);
#endif
- gst_tools_print_version ("gst-launch");
-
#ifndef DISABLE_FAULT_HANDLER
if (!no_fault)
fault_setup ();