g_thread_init (NULL);
+ gst_tools_set_prgname ("gst-inspect");
+
#ifndef GST_DISABLE_OPTION_PARSING
ctx = g_option_context_new ("[ELEMENT-NAME | PLUGIN-NAME]");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
g_thread_init (NULL);
+ gst_tools_set_prgname ("gst-launch");
+
#ifndef GST_DISABLE_OPTION_PARSING
ctx = g_option_context_new ("PIPELINE-DESCRIPTION");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
g_thread_init (NULL);
- gst_tools_print_version ("gst-typefind");
+ gst_tools_set_prgname ("gst-typefind");
ctx = g_option_context_new ("FILES");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
}
g_option_context_free (ctx);
+ gst_tools_print_version ("gst-typefind");
+
if (filenames == NULL || *filenames == NULL) {
g_print ("Please give a filename to typefind\n\n");
return 1;
g_thread_init (NULL);
- gst_tools_print_version ("gst-xmlinspect");
+ gst_tools_set_prgname ("gst-xmlinspect");
ctx = g_option_context_new ("[ELEMENT-NAME]");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
}
g_option_context_free (ctx);
+ gst_tools_print_version ("gst-xmlinspect");
+
/* if no arguments, print out all elements */
if (argc == 1) {
GList *features, *f;
static void
gst_tools_print_version (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);
-
if (__gst_tools_version) {
gchar *version_str;
}
}
+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__ */