tools: remove useless g_set_prgname() wrapper
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 26 Jun 2012 16:04:01 +0000 (17:04 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 26 Jun 2012 16:30:22 +0000 (17:30 +0100)
tools/gst-inspect.c
tools/gst-launch.c
tools/gst-typefind.c
tools/tools.h

index 9642ea9..00f892f 100644 (file)
@@ -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]");
index 2825498..4a1ca3b 100644 (file)
@@ -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");
index a466859..cef9004 100644 (file)
@@ -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);
index 93ac542..12144c5 100644 (file)
@@ -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__ */