Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
49d120b2
Commit
49d120b2
authored
Nov 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nice solution to a nasty printf hack (sic)
parent
97c94423
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
src/libvlc.c
src/libvlc.c
+4
-15
No files found.
src/libvlc.c
View file @
49d120b2
...
...
@@ -1899,12 +1899,9 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
static
void
ListModules
(
libvlc_int_t
*
p_this
,
bool
b_verbose
)
{
module_t
*
p_parser
;
char
psz_spaces
[
22
];
bool
b_color
=
config_GetInt
(
p_this
,
"color"
)
>
0
;
memset
(
psz_spaces
,
' '
,
22
);
#ifdef WIN32
ShowConsole
(
true
);
#endif
...
...
@@ -1917,20 +1914,14 @@ static void ListModules( libvlc_int_t *p_this, bool b_verbose )
{
int
i
;
/* Nasty hack, but right now I'm too tired to think about a nice
* solution */
i
=
22
-
strlen
(
p_parser
->
psz_object_name
)
-
1
;
if
(
i
<
0
)
i
=
0
;
psz_spaces
[
i
]
=
0
;
if
(
b_color
)
utf8_fprintf
(
stdout
,
GREEN
" %
s%
s "
WHITE
"%s
\n
"
GRAY
,
utf8_fprintf
(
stdout
,
GREEN
" %
-22
s "
WHITE
"%s
\n
"
GRAY
,
p_parser
->
psz_object_name
,
psz_spaces
,
_
(
p_parser
->
psz_longname
)
);
_
(
p_parser
->
psz_longname
)
);
else
utf8_fprintf
(
stdout
,
" %
s%
s %s
\n
"
,
utf8_fprintf
(
stdout
,
" %
-22
s %s
\n
"
,
p_parser
->
psz_object_name
,
psz_spaces
,
_
(
p_parser
->
psz_longname
)
);
_
(
p_parser
->
psz_longname
)
);
if
(
b_verbose
)
{
...
...
@@ -1960,8 +1951,6 @@ static void ListModules( libvlc_int_t *p_this, bool b_verbose )
p_parser
->
i_score
);
}
}
psz_spaces
[
i
]
=
' '
;
}
module_list_free
(
list
);
...
...
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