mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-13 23:50:29 -04:00
midifile: fix meta event read
This commit is contained in:
parent
bb91cfeb9e
commit
3813f64a27
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ int midi_file_read_event(struct midi_file *mf, struct midi_event *event)
|
|||
if (running)
|
||||
return -EINVAL;
|
||||
|
||||
if (mf_read(mf, &meta, 1) != -1)
|
||||
if (mf_read(mf, &meta, 1) != 1)
|
||||
return -EINVAL;
|
||||
|
||||
if ((res = parse_varlen(mf, tr, &size)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue