aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_shout.c4
-rw-r--r--src/audioOutputs/audioOutput_shout.h3
-rw-r--r--src/audioOutputs/audioOutput_shout_mp3.c4
-rw-r--r--src/audioOutputs/audioOutput_shout_ogg.c4
4 files changed, 4 insertions, 11 deletions
diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c
index 181091d59..b9deef295 100644
--- a/src/audioOutputs/audioOutput_shout.c
+++ b/src/audioOutputs/audioOutput_shout.c
@@ -30,8 +30,12 @@
static int shout_init_count;
static const struct shout_encoder_plugin *const shout_encoder_plugins[] = {
+#ifdef HAVE_SHOUT_MP3
&shout_mp3_encoder,
+#endif
+#ifdef HAVE_SHOUT_OGG
&shout_ogg_encoder,
+#endif
NULL
};
diff --git a/src/audioOutputs/audioOutput_shout.h b/src/audioOutputs/audioOutput_shout.h
index bd525fd6d..2cfe68f29 100644
--- a/src/audioOutputs/audioOutput_shout.h
+++ b/src/audioOutputs/audioOutput_shout.h
@@ -28,9 +28,6 @@
#include <shout/shout.h>
-#define DISABLED_SHOUT_ENCODER_PLUGIN(plugin) \
- struct shout_encoder_plugin plugin;
-
struct shout_data;
struct shout_encoder_plugin {
diff --git a/src/audioOutputs/audioOutput_shout_mp3.c b/src/audioOutputs/audioOutput_shout_mp3.c
index d1fe87884..c54632b15 100644
--- a/src/audioOutputs/audioOutput_shout_mp3.c
+++ b/src/audioOutputs/audioOutput_shout_mp3.c
@@ -186,8 +186,4 @@ const struct shout_encoder_plugin shout_mp3_encoder = {
shout_mp3_encoder_send_metadata,
};
-#else
-
-DISABLED_SHOUT_ENCODER_PLUGIN(shout_mp3_encoder);
-
#endif
diff --git a/src/audioOutputs/audioOutput_shout_ogg.c b/src/audioOutputs/audioOutput_shout_ogg.c
index d0303b3bb..14747c324 100644
--- a/src/audioOutputs/audioOutput_shout_ogg.c
+++ b/src/audioOutputs/audioOutput_shout_ogg.c
@@ -303,8 +303,4 @@ const struct shout_encoder_plugin shout_ogg_encoder = {
shout_ogg_encoder_send_metadata,
};
-#else
-
-DISABLED_SHOUT_ENCODER_PLUGIN(shout_ogg_encoder);
-
#endif