Fix write-pass re-start while in an active write-pass
This commit is contained in:
parent
68cd643946
commit
d67056562b
|
@ -467,6 +467,20 @@ ControlList::start_write_pass (double when)
|
|||
*/
|
||||
|
||||
unlocked_invalidate_insert_iterator ();
|
||||
|
||||
/* except if we're already in an active write-pass.
|
||||
*
|
||||
* invalid iterator == end() the iterator is set to the correct
|
||||
* position in ControlList::add IFF (_in_write_pass && new_write_pass)
|
||||
*/
|
||||
if (_in_write_pass && !new_write_pass) {
|
||||
#if 1
|
||||
add_guard_point (when, 0); // also sets most_recent_insert_iterator
|
||||
#else
|
||||
const ControlEvent cp (when, 0.0);
|
||||
most_recent_insert_iterator = lower_bound (_events.begin(), _events.end(), &cp, time_comparator);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue
Block a user