mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
Revert "tools: Move gst_tools_print_version call to avoid warning from new GLib."
This reverts commit 93dd95f02e
.
This commit made --version not work any longer. The g_setprgname()
warning is fixed in recent GLib versions.
This commit is contained in:
parent
b6e061b4ea
commit
47601cb911
2 changed files with 4 additions and 4 deletions
|
@ -1491,8 +1491,6 @@ main (int argc, char *argv[])
|
|||
|
||||
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);
|
||||
|
@ -1506,6 +1504,8 @@ main (int argc, char *argv[])
|
|||
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;
|
||||
|
|
|
@ -715,8 +715,6 @@ main (int argc, char *argv[])
|
|||
|
||||
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);
|
||||
|
@ -733,6 +731,8 @@ main (int argc, char *argv[])
|
|||
gst_init (&argc, &argv);
|
||||
#endif
|
||||
|
||||
gst_tools_print_version ("gst-launch");
|
||||
|
||||
#ifndef DISABLE_FAULT_HANDLER
|
||||
if (!no_fault)
|
||||
fault_setup ();
|
||||
|
|
Loading…
Reference in a new issue