From: Clemens Ladisch Date: Mon, 22 Jun 2009 08:00:03 +0000 (+0200) Subject: MIDI event decoder: prevent running status after sysex X-Git-Tag: v1.0.21~32^2~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=cbf395d6920a17d844ba5fa6afd615e23d00e596;p=alsa-lib.git MIDI event decoder: prevent running status after sysex Running status cannot be using in the command immediately following a system exclusive command, so we have to reset the running status state in that case. Signed-off-by: Clemens Ladisch --- diff --git a/src/seq/seq_midi_event.c b/src/seq/seq_midi_event.c index b5caa1b8..92c749ab 100644 --- a/src/seq/seq_midi_event.c +++ b/src/seq/seq_midi_event.c @@ -442,6 +442,7 @@ long snd_midi_event_decode(snd_midi_event_t *dev, unsigned char *buf, long count if (cmd == MIDI_CMD_COMMON_SYSEX) { + snd_midi_event_reset_decode(dev); qlen = ev->data.ext.len; if (count < qlen) return -ENOMEM;