Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
0c1e9058
Commit
0c1e9058
authored
Sep 02, 2008
by
dionoea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When applicable, mention that modules weren't displayed because they only had advanced options.
parent
072ebbc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
src/libvlc.c
src/libvlc.c
+19
-1
No files found.
src/libvlc.c
View file @
0c1e9058
...
...
@@ -1396,6 +1396,8 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
bool
b_color
=
config_GetInt
(
p_this
,
"color"
)
>
0
;
bool
b_has_advanced
=
false
;
bool
b_found
=
false
;
int
i_only_advanced
=
0
;
/* Number of modules ignored because they
* only have advanced options */
memset
(
psz_spaces_text
,
' '
,
PADDING_SPACES
+
LINE_START
);
psz_spaces_text
[
PADDING_SPACES
+
LINE_START
]
=
'\0'
;
...
...
@@ -1472,7 +1474,10 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
}
if
(
p_item
==
p_end
)
{
i_only_advanced
++
;
continue
;
}
}
b_found
=
true
;
...
...
@@ -1791,7 +1796,20 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
_
(
"add --advanced to your command line to see advanced options."
));
}
if
(
!
b_found
)
if
(
i_only_advanced
>
0
)
{
if
(
b_color
)
{
utf8_fprintf
(
stdout
,
"
\n
"
WHITE
"%s"
GRAY
" "
,
_
(
"Note:"
)
);
utf8_fprintf
(
stdout
,
_
(
"%d module(s) were not displayed because they only have advanced options.
\n
"
),
i_only_advanced
);
}
else
{
utf8_fprintf
(
stdout
,
"
\n
%s "
,
_
(
"Note:"
)
);
utf8_fprintf
(
stdout
,
_
(
"%d module(s) were not displayed because they only have advanced options.
\n
"
),
i_only_advanced
);
}
}
else
if
(
!
b_found
)
{
if
(
b_color
)
utf8_fprintf
(
stdout
,
"
\n
"
WHITE
"%s"
GRAY
"
\n
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment