aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/wildmidi_decoder_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-20 23:03:06 +0200
committerMax Kellermann <max@duempel.org>2010-07-20 23:03:06 +0200
commitc0da938d4f9e6b15cc5cca80090a15aa89ff3d2b (patch)
treead9b4d900e4aa34b2c587423911c19f7d84cdde8 /src/decoder/wildmidi_decoder_plugin.c
parentfb19aa355e566898fcb18bf3a5700a8e5f236696 (diff)
parent0fec8e08641470fdcaeb68fc362f77ca78925011 (diff)
downloadmpd-c0da938d4f9e6b15cc5cca80090a15aa89ff3d2b.tar.gz
mpd-c0da938d4f9e6b15cc5cca80090a15aa89ff3d2b.tar.xz
mpd-c0da938d4f9e6b15cc5cca80090a15aa89ff3d2b.zip
Merge release 0.15.12 from branch 'v0.15.x'
Conflicts: NEWS configure.ac
Diffstat (limited to 'src/decoder/wildmidi_decoder_plugin.c')
-rw-r--r--src/decoder/wildmidi_decoder_plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decoder/wildmidi_decoder_plugin.c b/src/decoder/wildmidi_decoder_plugin.c
index 54eed48d9..66e6c61cf 100644
--- a/src/decoder/wildmidi_decoder_plugin.c
+++ b/src/decoder/wildmidi_decoder_plugin.c
@@ -97,7 +97,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;
}