mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
Fix crash on reading meta event.
git-svn-id: svn://localhost/ardour2/branches/3.0@4586 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
59972b5550
commit
3cfb9126af
2 changed files with 3 additions and 3 deletions
|
|
@ -174,13 +174,13 @@ SMFSource::read_unlocked (MidiRingBuffer<nframes_t>& dst, nframes_t start, nfram
|
|||
break;
|
||||
}
|
||||
|
||||
ev_type = EventTypeMap::instance().midi_event_type(ev_buffer[0]);
|
||||
|
||||
time += ev_delta_t; // accumulate delta time
|
||||
|
||||
if (ret == 0) { // meta-event (skipped, just accumulate time)
|
||||
continue;
|
||||
}
|
||||
|
||||
ev_type = EventTypeMap::instance().midi_event_type(ev_buffer[0]);
|
||||
|
||||
assert(time >= start_ticks);
|
||||
const nframes_t ev_frame_time = (nframes_t)(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue