aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-20 18:26:13 +0200
committerMax Kellermann <max@duempel.org>2010-07-20 18:23:56 +0200
commit898a13f196eb005c969794bf16d8afa858a48f33 (patch)
tree86512c8f902cb9984f2e2a11bb1befc32613ffef /src
parentb97e92468fa137780fe980eaf3d999bdc83d800a (diff)
downloadmpd-898a13f196eb005c969794bf16d8afa858a48f33.tar.gz
mpd-898a13f196eb005c969794bf16d8afa858a48f33.tar.xz
mpd-898a13f196eb005c969794bf16d8afa858a48f33.zip
decoder/wildmidi: support version 0.2.3
In libwildmidi 0.2.3, the function WildMidi_SampledSeek() was removed, without changing the SO name. This patch adds an autoconf check for that function. Fall back to WildMidi_FastSeek() if WildMidi_SampledSeek() is not available anymore.
Diffstat (limited to 'src')
-rw-r--r--src/decoder/wildmidi_plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decoder/wildmidi_plugin.c b/src/decoder/wildmidi_plugin.c
index 8bad6943a..b5e9810f9 100644
--- a/src/decoder/wildmidi_plugin.c
+++ b/src/decoder/wildmidi_plugin.c
@@ -99,7 +99,11 @@ wildmidi_file_decode(struct decoder *decoder, const char *path_fs)
unsigned long seek_where = WILDMIDI_SAMPLE_RATE *
decoder_seek_where(decoder);
+#ifdef HAVE_WILDMIDI_SAMPLED_SEEK
WildMidi_SampledSeek(wm, &seek_where);
+#else
+ WildMidi_FastSeek(wm, &seek_where);
+#endif
decoder_command_finished(decoder);
cmd = DECODE_COMMAND_NONE;
}