parser: fix sysex parsing

fixes #148
This commit is contained in:
derselbst 2017-07-01 18:33:52 +02:00
parent cf1975e35f
commit 174d8551b9

View file

@ -1886,7 +1886,7 @@ fluid_midi_parser_parse(fluid_midi_parser_t *parser, unsigned char c)
parser->data[parser->nr_bytes++] = c; parser->data[parser->nr_bytes++] = c;
/* Do we still need more data to get this event complete? */ /* 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; return NULL;
/* Event is complete, return it. /* Event is complete, return it.