diff options
-rw-r--r-- | src/tools/midifile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/midifile.c b/src/tools/midifile.c index 7d3872df..47291e3d 100644 --- a/src/tools/midifile.c +++ b/src/tools/midifile.c @@ -306,8 +306,7 @@ static int peek_next(struct midi_file *mf, struct midi_event *ev) if (found == NULL || tr->tick < found->tick) found = tr; } - if (found == NULL || - tr_avail(found) == 0) + if (found == NULL) return 0; ev->track = found->id; |