summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-06-26 17:04:01 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-06-26 17:30:22 +0100
commit6438a0439d5594402af3aa96a334ffabf766212c (patch)
tree7b1d750169c9ddac11fba80d672cf372688e8afb /tools
parent5be0a58463b8a2e3091fa610d9379f69fe0488c1 (diff)
tools: remove useless g_set_prgname() wrapper
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-inspect.c2
-rw-r--r--tools/gst-launch.c2
-rw-r--r--tools/gst-typefind.c2
-rw-r--r--tools/tools.h10
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__ */