From 7f921d327cfe96dcb14af7e9a4ec3419fe7788e6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 5 Mar 2011 18:24:16 -0800 Subject: [PATCH] Fix detection of non-split MIDI sysex messages --- src/codec_fluidsynth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codec_fluidsynth.cpp b/src/codec_fluidsynth.cpp index 38f425b..25d5b8f 100644 --- a/src/codec_fluidsynth.cpp +++ b/src/codec_fluidsynth.cpp @@ -527,7 +527,7 @@ private: break; } - if(len > 1 && i->data[len-1] == MIDI_SYSEXEND) + if(i->data[i->Offset+len-1] == MIDI_SYSEXEND) { char *data = reinterpret_cast(&i->data[i->Offset]); pfluid_synth_sysex(fluidSynth, data, len-1, NULL, NULL, NULL, false); -- 2.11.4.GIT