Fix crash on playhead relocate in MIDI regions w/o CC data.
git-svn-id: svn://localhost/ardour2/trunk@2448 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
47c56f3092
commit
c0af53a98a
@ -128,7 +128,7 @@ MidiModel::const_iterator::operator++()
|
|||||||
assert(_event.is_note() || _event.is_cc());
|
assert(_event.is_note() || _event.is_cc());
|
||||||
|
|
||||||
// Increment past current control event
|
// Increment past current control event
|
||||||
if (_control_iter->first && _event.is_cc()) {
|
if (_control_iter != _control_iters.end() && _control_iter->first && _event.is_cc()) {
|
||||||
double x, y;
|
double x, y;
|
||||||
const bool ret = _control_iter->first->rt_safe_earliest_event_unlocked(
|
const bool ret = _control_iter->first->rt_safe_earliest_event_unlocked(
|
||||||
_control_iter->second.first, DBL_MAX, x, y, false);
|
_control_iter->second.first, DBL_MAX, x, y, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user