tools: Move gst_tools_print_version() for the remaining tools

This commit is contained in:
Sebastian Dröge 2009-12-09 07:25:31 +01:00
parent 93dd95f02e
commit 0ffca884b0
2 changed files with 4 additions and 4 deletions

View file

@ -156,6 +156,8 @@ main (int argc, char *argv[])
if (!g_thread_supported ())
g_thread_init (NULL);
gst_tools_print_version ("gst-typefind");
ctx = g_option_context_new ("FILES");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
g_option_context_add_group (ctx, gst_init_get_option_group ());
@ -165,8 +167,6 @@ main (int argc, char *argv[])
}
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;

View file

@ -640,6 +640,8 @@ main (int argc, char *argv[])
if (!g_thread_supported ())
g_thread_init (NULL);
gst_tools_print_version ("gst-xmlinspect");
ctx = g_option_context_new ("[ELEMENT-NAME]");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
g_option_context_add_group (ctx, gst_init_get_option_group ());
@ -649,8 +651,6 @@ main (int argc, char *argv[])
}
g_option_context_free (ctx);
gst_tools_print_version ("gst-xmlinspect");
/* if no arguments, print out all elements */
if (argc == 1) {
GList *features, *f;