diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gst-inspect.c | 2 | ||||
-rw-r--r-- | tools/gst-launch.c | 2 | ||||
-rw-r--r-- | tools/gst-typefind.c | 2 | ||||
-rw-r--r-- | tools/tools.h | 10 |
4 files changed, 3 insertions, 13 deletions
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__ */ |