From d5ed23438a37a447a9011914dda2f058c15a15fc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Nov 2009 17:01:14 +0100 Subject: decoder/flac: removed the fake flac_ogg_init() fallback Don't even try to call it with an old libFLAC API. --- src/decoder/flac_compat.h | 2 -- src/decoder/flac_plugin.c | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/decoder/flac_compat.h b/src/decoder/flac_compat.h index 90cf71ea9..6d2cbb920 100644 --- a/src/decoder/flac_compat.h +++ b/src/decoder/flac_compat.h @@ -30,8 +30,6 @@ # define flac_decoder FLAC__SeekableStreamDecoder # define flac_new() FLAC__seekable_stream_decoder_new() -# define flac_ogg_init(a,b,c,d,e,f,g,h,i,j) (0) - # define flac_get_decode_position(x,y) \ FLAC__seekable_stream_decoder_get_decode_position(x,y) # define flac_get_state(x) FLAC__seekable_stream_decoder_get_state(x) 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, -- cgit v1.2.3