aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoder_list.c
diff options
context:
space:
mode:
authorViliam Mateicka <viliam.mateicka@gmail.com>2009-11-17 20:39:26 +0100
committerViliam Mateicka <viliam.mateicka@gmail.com>2009-11-17 20:39:26 +0100
commitd37b4bb199cbe5c34ad8bcf36be26cd7c3caa11d (patch)
treeed402ada2f59893cfe1e1225c42c6908cff57cb3 /src/encoder_list.c
parentea92dee1aedd2e6186e8de2e70ba6bf45ec5298d (diff)
downloadmpd-d37b4bb199cbe5c34ad8bcf36be26cd7c3caa11d.tar.gz
mpd-d37b4bb199cbe5c34ad8bcf36be26cd7c3caa11d.tar.xz
mpd-d37b4bb199cbe5c34ad8bcf36be26cd7c3caa11d.zip
cmdline: print out list of encoders in --version info
Diffstat (limited to 'src/encoder_list.c')
-rw-r--r--src/encoder_list.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/encoder_list.c b/src/encoder_list.c
index d5f0db65a..d86753d50 100644
--- a/src/encoder_list.c
+++ b/src/encoder_list.c
@@ -59,3 +59,13 @@ encoder_plugin_get(const char *name)
return NULL;
}
+
+void
+encoder_plugin_print_all_types(FILE * fp)
+{
+ for (unsigned i = 0; encoder_plugins[i] != NULL; ++i)
+ fprintf(fp, "%s ", encoder_plugins[i]->name);
+
+ fprintf(fp, "\n");
+ fflush(fp);
+}