core: Fix max DEBUG_LEVEL incongruence on 5 vs 9

In the docs and the autocompletion logic the maximum
value jumped incongruently between 5 and 9.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2013-10-10 08:30:27 -07:00
parent 4964611960
commit 9d63968830
3 changed files with 8 additions and 8 deletions

View file

@ -90,7 +90,7 @@
<para>
<option>--gst-debug-level=<replaceable>LEVEL</replaceable></option>
will set the default debug level (which can range from 0 (no
output) to 5 (everything)).
output) to 9 (everything)).
</para>
</listitem>
<listitem>

View file

@ -240,7 +240,7 @@ gst_init_get_option_group (void)
NULL},
{"gst-debug-level", 0, 0, G_OPTION_ARG_CALLBACK,
(gpointer) parse_goption_arg,
N_("Default debug level from 1 (only error) to 5 (anything) or "
N_("Default debug level from 1 (only error) to 9 (anything) or "
"0 for no output"),
N_("LEVEL")},
{"gst-debug", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) parse_goption_arg,

View file

@ -37,9 +37,9 @@ _assert_expected() {
test_gst_inspect_completion '' -- --version --gst-debug-level coreelements fakesrc
test_gst_inspect_completion --ver -- --version
test_gst_inspect_completion --gst-debug-le -- --gst-debug-level
test_gst_inspect_completion --gst-debug-level '' -- 0 1 2 3 4 5
test_gst_inspect_completion --gst-debug-level = -- 0 1 2 3 4 5
test_gst_inspect_completion --gst-debug-level= -- 0 1 2 3 4 5
test_gst_inspect_completion --gst-debug-level '' -- 0 1 2 3 4 5 6 7 8 9
test_gst_inspect_completion --gst-debug-level = -- 0 1 2 3 4 5 6 7 8 9
test_gst_inspect_completion --gst-debug-level= -- 0 1 2 3 4 5 6 7 8 9
test_gst_inspect_completion --gst-debug-level=4 -- 4
test_gst_inspect_completion coreel -- coreelements
test_gst_inspect_completion fake -- fakesrc fakesink
@ -67,9 +67,9 @@ test_gst_launch_completion() {
test_gst_launch_completion '' -- --eos-on-shutdown --gst-debug-level fakesrc fakesink
test_gst_launch_completion --mes -- --messages
test_gst_launch_completion --gst-debug-le -- --gst-debug-level
test_gst_launch_completion --gst-debug-level '' -- 0 1 2 3 4 5
test_gst_launch_completion --gst-debug-level = -- 0 1 2 3 4 5
test_gst_launch_completion --gst-debug-level= -- 0 1 2 3 4 5
test_gst_launch_completion --gst-debug-level '' -- 0 1 2 3 4 5 6 7 8 9
test_gst_launch_completion --gst-debug-level = -- 0 1 2 3 4 5 6 7 8 9
test_gst_launch_completion --gst-debug-level= -- 0 1 2 3 4 5 6 7 8 9
test_gst_launch_completion --gst-debug-level=4 -- 4
test_gst_launch_completion fak -- fakesrc fakesink
test_gst_launch_completion --messages fak -- fakesrc fakesink