Commit 0ffca884 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

tools: Move gst_tools_print_version() for the remaining tools

parent 93dd95f0
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment