From 6438a0439d5594402af3aa96a334ffabf766212c Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Tue, 26 Jun 2012 17:04:01 +0100 Subject: tools: remove useless g_set_prgname() wrapper --- tools/gst-inspect.c | 2 +- tools/gst-launch.c | 2 +- tools/gst-typefind.c | 2 +- tools/tools.h | 10 ---------- 4 files changed, 3 insertions(+), 13 deletions(-) (limited to 'tools') diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 9642ea9d4..00f892f81 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -1535,7 +1535,7 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); #endif - gst_tools_set_prgname ("gst-inspect"); + g_set_prgname ("gst-inspect-" GST_API_VERSION); #ifndef GST_DISABLE_OPTION_PARSING ctx = g_option_context_new ("[ELEMENT-NAME | PLUGIN-NAME]"); diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 282549802..4a1ca3ba8 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -949,7 +949,7 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); #endif - gst_tools_set_prgname ("gst-launch"); + g_set_prgname ("gst-launch-" GST_API_VERSION); #ifndef GST_DISABLE_OPTION_PARSING ctx = g_option_context_new ("PIPELINE-DESCRIPTION"); diff --git a/tools/gst-typefind.c b/tools/gst-typefind.c index a466859a0..cef900452 100644 --- a/tools/gst-typefind.c +++ b/tools/gst-typefind.c @@ -153,7 +153,7 @@ main (int argc, char *argv[]) textdomain (GETTEXT_PACKAGE); #endif - gst_tools_set_prgname ("gst-typefind"); + g_set_prgname ("gst-typefind-" GST_API_VERSION); ctx = g_option_context_new ("FILES"); g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); diff --git a/tools/tools.h b/tools/tools.h index 93ac542ee..12144c53c 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -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__ */ -- cgit v1.2.3