diff options
author | Max Kellermann <max@musicpd.org> | 2020-04-22 21:49:10 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-04-22 21:53:00 +0200 |
commit | 138c29320be50e212396735941094f555ce5ce0c (patch) | |
tree | 484dfa55ae274adeebab100a90291ce0279fb0a9 /src/decoder/plugins/GmeDecoderPlugin.cxx | |
parent | 8f00dbea45954a7fb0cac4a0b9e9b90117373b08 (diff) |
gme: adapt to API change in the upcoming version 0.7.0
Closes https://github.com/MusicPlayerDaemon/MPD/issues/833
Diffstat (limited to 'src/decoder/plugins/GmeDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/GmeDecoderPlugin.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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; |