From 138c29320be50e212396735941094f555ce5ce0c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Apr 2020 21:49:10 +0200 Subject: [PATCH] gme: adapt to API change in the upcoming version 0.7.0 Closes https://github.com/MusicPlayerDaemon/MPD/issues/833 --- NEWS | 2 ++ src/decoder/plugins/GmeDecoderPlugin.cxx | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 198302b20..68b2e5558 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ ver 0.21.23 (not yet released) * storage - curl: fix corrupt "href" values in the presence of XML entities - curl: unescape "href" values +* decoder + - gme: adapt to API change in the upcoming version 0.7.0 * output - alsa: implement channel mapping for 5.0 and 7.0 * player diff --git a/src/decoder/plugins/GmeDecoderPlugin.cxx b/src/decoder/plugins/GmeDecoderPlugin.cxx index fcea526af..82f47fdd3 100644 --- a/src/decoder/plugins/GmeDecoderPlugin.cxx +++ b/src/decoder/plugins/GmeDecoderPlugin.cxx @@ -185,7 +185,11 @@ gme_file_decode(DecoderClient &client, Path path_fs) LogWarning(gme_domain, gme_err); if (length > 0) - gme_set_fade(emu, length); + gme_set_fade(emu, length +#if GME_VERSION >= 0x000700 + , 8000 +#endif + ); /* play */ DecoderCommand cmd;