]> git.alsa-project.org Git - alsa-lib.git/commit
rawmidi: fix the params_mode check condition in snd_rawmidi_tread()
authorJaroslav Kysela <perex@perex.cz>
Sun, 26 Jun 2022 14:07:56 +0000 (16:07 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 26 Jun 2022 14:07:56 +0000 (16:07 +0200)
commit917f4124840ab95324af9fdff05d787c1c677400
tree5af61f1ad269a14ca9cfa2f78b120b89fdcead14
parentf91c89da999cf4f9445ada0206ef4b7c25255cdf
rawmidi: fix the params_mode check condition in snd_rawmidi_tread()

The condition should be obviously reversed.

Reported-by: Mark ZurSchmiede <zursch@gmail.com>
Fixes: 5ac61983 ("rawmidi: allow timestamp reads only for the appropriate read mode")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/rawmidi/rawmidi.c