aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-01-26 12:46:26 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-26 12:46:26 +0000
commit07eaad301af56995f5c6a541c06ef9483d9fa9ec (patch)
tree3eff1586cc073be4dce309233a5f29f60943e394
parent07adb14e3c4daa8b1e6ebc69e54128b38b014d30 (diff)
downloadmpd-07eaad301af56995f5c6a541c06ef9483d9fa9ec.tar.gz
mpd-07eaad301af56995f5c6a541c06ef9483d9fa9ec.tar.xz
mpd-07eaad301af56995f5c6a541c06ef9483d9fa9ec.zip
assume old flac api when FLAC_API_VERSION_CURRENT is not defined
the code is inconsistent when FLAC_API_VERSION_CURRENT is not defined: sometimes version > 7 is assumed, and sometimes version <= 7. solve this by assuming the version is old when FLAC_API_VERSION_CURRENT is not defined. Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7144 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/flac_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c
index c906314f3..014365921 100644
--- a/src/inputPlugins/flac_plugin.c
+++ b/src/inputPlugins/flac_plugin.c
@@ -348,7 +348,7 @@ static int flac_decode_internal(OutputBuffer * cb, DecoderControl * dc,
return -1;
init_FlacData(&data, cb, dc, inStream);
-#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT > 7
+#if defined(FLAC_API_VERSION_CURRENT) && FLAC_API_VERSION_CURRENT > 7
if(!FLAC__stream_decoder_set_metadata_respond(flacDec, FLAC__METADATA_TYPE_VORBIS_COMMENT))
{
DEBUG(__FILE__": Failed to set metadata respond\n");