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]");
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");
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);
}
}
-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__ */