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
@ -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)(
|
||||
|
@ -358,7 +358,7 @@ Sequence<Time>::const_iterator::operator++()
|
||||
#ifdef DEBUG_SEQUENCE
|
||||
cerr << "Iterator = SysEx" << endl;
|
||||
#endif
|
||||
*_event =*(*_sysex_iter);
|
||||
*_event = *(*_sysex_iter);
|
||||
++_sysex_iter;
|
||||
} else {
|
||||
#ifdef DEBUG_SEQUENCE
|
||||
|
Loading…
Reference in New Issue
Block a user