mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 10:43:55 +00:00
tests/examples/playlist.c: clean up playlist help text
This commit is contained in:
parent
c5d9b54c67
commit
9cf2d7b1be
1 changed files with 7 additions and 11 deletions
|
@ -374,19 +374,17 @@ main (int argc, gchar ** argv)
|
||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
|
|
||||||
ctx = g_option_context_new ("- plays/render a list of files");
|
ctx = g_option_context_new ("- plays or render a timeline.");
|
||||||
g_option_context_set_summary (ctx,
|
g_option_context_set_summary (ctx,
|
||||||
"If not specified, this example will playback the files\n" "\n"
|
"A timline is a sequence of files, patterns, and transitions.\n"
|
||||||
"The files should be layed out in triplets of:\n"
|
"Transitions can only go between patterns or files.\n\n"
|
||||||
|
"A file is a tripplet of:\n"
|
||||||
" * filename\n"
|
" * filename\n"
|
||||||
" * inpoint (in seconds)\n"
|
" * inpoint (in seconds)\n"
|
||||||
" * duration (in seconds) If 0, full file length\n\n"
|
" * duration (in seconds) If 0, full file length\n\n"
|
||||||
"Solid patterns and transitions can be specified as follows:\n"
|
"Patterns and transitions are triplets of:\n"
|
||||||
" * +pattern | +transition\n"
|
" * \"+pattern\" | \"+transition\"\n"
|
||||||
" * <type>\n"
|
" * <type>\n" " * duration (in seconds, must be greater than 0)\n");
|
||||||
" * duration (in seconds, must be greater than 0)\n"
|
|
||||||
"To get a list of valid transitions, use --transitions.\n"
|
|
||||||
"To get a list of valid patterns, use --patterns.\n");
|
|
||||||
g_option_context_add_main_entries (ctx, options, NULL);
|
g_option_context_add_main_entries (ctx, options, NULL);
|
||||||
g_option_context_add_group (ctx, gst_init_get_option_group ());
|
g_option_context_add_group (ctx, gst_init_get_option_group ());
|
||||||
|
|
||||||
|
@ -407,8 +405,6 @@ main (int argc, gchar ** argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((argc < 4) || (outputuri && (!render && !smartrender))) {
|
if ((argc < 4) || (outputuri && (!render && !smartrender))) {
|
||||||
g_print ("outputuri:%s, render:%d, smartrender:%d, argc:%d\n",
|
|
||||||
outputuri, render, smartrender, argc);
|
|
||||||
g_print ("%s", g_option_context_get_help (ctx, TRUE, NULL));
|
g_print ("%s", g_option_context_get_help (ctx, TRUE, NULL));
|
||||||
g_option_context_free (ctx);
|
g_option_context_free (ctx);
|
||||||
exit (-1);
|
exit (-1);
|
||||||
|
|
Loading…
Reference in a new issue