mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
tools: Move gst_tools_print_version() for the remaining tools
This commit is contained in:
parent
93dd95f02e
commit
0ffca884b0
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue