summaryrefslogtreecommitdiff
path: root/src/decoder/plugins/GmeDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-04-22 21:49:10 +0200
committerMax Kellermann <max@musicpd.org>2020-04-22 21:53:00 +0200
commit138c29320be50e212396735941094f555ce5ce0c (patch)
tree484dfa55ae274adeebab100a90291ce0279fb0a9 /src/decoder/plugins/GmeDecoderPlugin.cxx
parent8f00dbea45954a7fb0cac4a0b9e9b90117373b08 (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.cxx6
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;