Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
4cc0caf1
Commit
4cc0caf1
authored
Dec 30, 2008
by
Viliam Mateicka
Committed by
Max Kellermann
Dec 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print supported decoders in --version
parent
d38a7967
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
cmdline.c
src/cmdline.c
+4
-0
decoder_list.c
src/decoder_list.c
+13
-0
decoder_list.h
src/decoder_list.h
+2
-0
No files found.
src/cmdline.c
View file @
4cc0caf1
...
...
@@ -50,6 +50,10 @@ static void version(void)
decoder_plugin_print_all_suffixes
(
stdout
);
puts
(
"
\n
"
"Supported decoders:
\n
"
);
decoder_plugin_print_all_decoders
(
stdout
);
puts
(
"
\n
"
"Supported outputs:
\n
"
);
printAllOutputPluginTypes
(
stdout
);
...
...
src/decoder_list.c
View file @
4cc0caf1
...
...
@@ -157,6 +157,19 @@ void decoder_plugin_print_all_suffixes(FILE * fp)
fflush
(
fp
);
}
void
decoder_plugin_print_all_decoders
(
FILE
*
fp
)
{
for
(
unsigned
i
=
0
;
i
<
num_decoder_plugins
;
++
i
)
{
const
struct
decoder_plugin
*
plugin
=
decoder_plugins
[
i
];
if
(
!
decoder_plugins_enabled
[
i
])
continue
;
fprintf
(
fp
,
"%s "
,
plugin
->
name
);
}
fprintf
(
fp
,
"
\n
"
);
fflush
(
fp
);
}
void
decoder_plugin_init_all
(
void
)
{
for
(
unsigned
i
=
0
;
i
<
num_decoder_plugins
;
++
i
)
{
...
...
src/decoder_list.h
View file @
4cc0caf1
...
...
@@ -36,6 +36,8 @@ decoder_plugin_from_name(const char *name);
void
decoder_plugin_print_all_suffixes
(
FILE
*
fp
);
void
decoder_plugin_print_all_decoders
(
FILE
*
fp
);
/* this is where we "load" all the "plugins" ;-) */
void
decoder_plugin_init_all
(
void
);
...
...
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