midifile: remove impossible case.

This commit is contained in:
Wim Taymans 2020-04-14 20:11:51 +02:00
parent d1beeeade0
commit 84b048507b

View file

@ -306,8 +306,7 @@ static int peek_next(struct midi_file *mf, struct midi_event *ev)
if (found == NULL || tr->tick < found->tick) if (found == NULL || tr->tick < found->tick)
found = tr; found = tr;
} }
if (found == NULL || if (found == NULL)
tr_avail(found) == 0)
return 0; return 0;
ev->track = found->id; ev->track = found->id;