tools: Move gst_tools_print_version() for the remaining tools
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 9 Dec 2009 06:25:31 +0000 (07:25 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 9 Dec 2009 06:25:31 +0000 (07:25 +0100)
tools/gst-typefind.c
tools/gst-xmlinspect.c

index 4f0e0a9..1f521fd 100644 (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;
index c683557..36b1913 100644 (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;