From 07eaad301af56995f5c6a541c06ef9483d9fa9ec Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Jan 2008 12:46:26 +0000 Subject: 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 git-svn-id: https://svn.musicpd.org/mpd/trunk@7144 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/flac_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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"); -- cgit v1.2.3