diff options
Diffstat (limited to 'libs/ardour/midi_track.cc')
-rw-r--r-- | libs/ardour/midi_track.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index 7f2bb641e1..525db3ab96 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -360,6 +360,8 @@ MidiTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_frame c.set_midi (1); bufs.set_count (c); + assert (nframes > 0); + diskstream->get_playback (mbuf, nframes); /* append immediate messages to the first MIDI buffer (thus sending it to the first output port) */ |