mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
tools: remove useless g_set_prgname() wrapper
This commit is contained in:
parent
5be0a58463
commit
6438a0439d
4 changed files with 3 additions and 13 deletions
|
@ -1535,7 +1535,7 @@ main (int argc, char *argv[])
|
||||||
textdomain (GETTEXT_PACKAGE);
|
textdomain (GETTEXT_PACKAGE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gst_tools_set_prgname ("gst-inspect");
|
g_set_prgname ("gst-inspect-" GST_API_VERSION);
|
||||||
|
|
||||||
#ifndef GST_DISABLE_OPTION_PARSING
|
#ifndef GST_DISABLE_OPTION_PARSING
|
||||||
ctx = g_option_context_new ("[ELEMENT-NAME | PLUGIN-NAME]");
|
ctx = g_option_context_new ("[ELEMENT-NAME | PLUGIN-NAME]");
|
||||||
|
|
|
@ -949,7 +949,7 @@ main (int argc, char *argv[])
|
||||||
textdomain (GETTEXT_PACKAGE);
|
textdomain (GETTEXT_PACKAGE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gst_tools_set_prgname ("gst-launch");
|
g_set_prgname ("gst-launch-" GST_API_VERSION);
|
||||||
|
|
||||||
#ifndef GST_DISABLE_OPTION_PARSING
|
#ifndef GST_DISABLE_OPTION_PARSING
|
||||||
ctx = g_option_context_new ("PIPELINE-DESCRIPTION");
|
ctx = g_option_context_new ("PIPELINE-DESCRIPTION");
|
||||||
|
|
|
@ -153,7 +153,7 @@ main (int argc, char *argv[])
|
||||||
textdomain (GETTEXT_PACKAGE);
|
textdomain (GETTEXT_PACKAGE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gst_tools_set_prgname ("gst-typefind");
|
g_set_prgname ("gst-typefind-" GST_API_VERSION);
|
||||||
|
|
||||||
ctx = g_option_context_new ("FILES");
|
ctx = g_option_context_new ("FILES");
|
||||||
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
|
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
|
||||||
|
|
|
@ -57,14 +57,4 @@ gst_tools_print_version (const gchar * tool)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_tools_set_prgname (const gchar * tool)
|
|
||||||
{
|
|
||||||
gchar *s;
|
|
||||||
|
|
||||||
s = g_strdup_printf ("%s-%u.%u", tool, GST_VERSION_MAJOR, GST_VERSION_MINOR);
|
|
||||||
g_set_prgname (s);
|
|
||||||
g_free (s);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* __GST_TOOLS_H__ */
|
#endif /* __GST_TOOLS_H__ */
|
||||||
|
|
Loading…
Reference in a new issue