From 174d8551b939c1d1cdf4eec816db9434012d708f Mon Sep 17 00:00:00 2001 From: derselbst Date: Sat, 1 Jul 2017 18:33:52 +0200 Subject: [PATCH] parser: fix sysex parsing fixes #148 --- fluidsynth/src/midi/fluid_midi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluidsynth/src/midi/fluid_midi.c b/fluidsynth/src/midi/fluid_midi.c index aae5715a..c1571006 100644 --- a/fluidsynth/src/midi/fluid_midi.c +++ b/fluidsynth/src/midi/fluid_midi.c @@ -1886,7 +1886,7 @@ fluid_midi_parser_parse(fluid_midi_parser_t *parser, unsigned char c) parser->data[parser->nr_bytes++] = c; /* Do we still need more data to get this event complete? */ - if (parser->nr_bytes < parser->nr_bytes_total) + if (parser->status == MIDI_SYSEX || parser->nr_bytes < parser->nr_bytes_total) return NULL; /* Event is complete, return it.