diff options
Diffstat (limited to 'src/decoder/flac_plugin.c')
-rw-r--r-- | src/decoder/flac_plugin.c | 4 |
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, |