aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/flac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-11 17:01:14 +0100
committerMax Kellermann <max@duempel.org>2009-11-11 17:01:14 +0100
commitd5ed23438a37a447a9011914dda2f058c15a15fc (patch)
treec59fc0307a48add8a1e67ee92f2d811c35fa2980 /src/decoder/flac_plugin.c
parent5bbaf0c9f170d1e18b4fd82da8685e11aa74811f (diff)
downloadmpd-d5ed23438a37a447a9011914dda2f058c15a15fc.tar.gz
mpd-d5ed23438a37a447a9011914dda2f058c15a15fc.tar.xz
mpd-d5ed23438a37a447a9011914dda2f058c15a15fc.zip
decoder/flac: removed the fake flac_ogg_init() fallback
Don't even try to call it with an old libFLAC API.
Diffstat (limited to '')
-rw-r--r--src/decoder/flac_plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c
index f6a6cf39f..f45cf789a 100644
--- a/src/decoder/flac_plugin.c
+++ b/src/decoder/flac_plugin.c
@@ -469,6 +469,7 @@ flac_decode_internal(struct decoder * decoder,
#endif
if (is_ogg) {
+#if defined(FLAC_API_VERSION_CURRENT) && FLAC_API_VERSION_CURRENT > 7
if (!flac_ogg_init(flac_dec, flac_read_cb,
flac_seek_cb, flac_tell_cb,
flac_length_cb, flac_eof_cb,
@@ -477,6 +478,9 @@ flac_decode_internal(struct decoder * decoder,
err = "doing Ogg init()";
goto fail;
}
+#else
+ goto fail;
+#endif
} else {
if (!flac_init(flac_dec, flac_read_cb,
flac_seek_cb, flac_tell_cb,