aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_list.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-17 21:57:09 +0200
committerMax Kellermann <max@duempel.org>2008-10-17 21:57:09 +0200
commit4ee8da2e694d29efef5f6311d3bf8504d474918f (patch)
tree868dc1a01c18db170e4259b450263fa507e5504f /src/decoder_list.c
parent25b5d90e448146b6efaf4926680e35aee4a0af6c (diff)
downloadmpd-4ee8da2e694d29efef5f6311d3bf8504d474918f.tar.gz
mpd-4ee8da2e694d29efef5f6311d3bf8504d474918f.tar.xz
mpd-4ee8da2e694d29efef5f6311d3bf8504d474918f.zip
Makefile.am: don't compile disabled decoder plugins
Don't compile the sources of disabled decoder plugins at all, and don't attempt to register these.
Diffstat (limited to 'src/decoder_list.c')
-rw-r--r--src/decoder_list.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/decoder_list.c b/src/decoder_list.c
index 6626f556a..4aab73bda 100644
--- a/src/decoder_list.c
+++ b/src/decoder_list.c
@@ -151,16 +151,34 @@ void decoder_plugin_init_all(void)
inputPlugin_list = makeList(NULL, 1);
/* load plugins here */
+#ifdef HAVE_MAD
decoder_plugin_load(&mp3Plugin);
+#endif
+#ifdef HAVE_OGGVORBIS
decoder_plugin_load(&oggvorbisPlugin);
+#endif
+#ifdef HAVE_FLAC_COMMON
decoder_plugin_load(&oggflacPlugin);
+#endif
+#ifdef HAVE_FLAC
decoder_plugin_load(&flacPlugin);
+#endif
+#ifdef HAVE_AUDIOFILE
decoder_plugin_load(&audiofilePlugin);
+#endif
+#ifdef HAVE_FAAD
decoder_plugin_load(&mp4Plugin);
decoder_plugin_load(&aacPlugin);
+#endif
+#ifdef HAVE_MPCDEC
decoder_plugin_load(&mpcPlugin);
+#endif
+#ifdef HAVE_WAVPACK
decoder_plugin_load(&wavpackPlugin);
+#endif
+#ifdef HAVE_MIKMOD
decoder_plugin_load(&modPlugin);
+#endif
}
void decoder_plugin_deinit_all(void)