summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-04-14 20:11:51 +0200
committerWim Taymans <wtaymans@redhat.com>2020-04-14 20:11:51 +0200
commit84b048507b38c7f49e911f49340aa290ad39ec37 (patch)
treeb276304fde5f930755ee2e4dbc4cb48154188938 /src/tools
parentd1beeeade07a04945442bed18379bd4ef07ab42a (diff)
midifile: remove impossible case.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/midifile.c3
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;