Add missing processor-locks to iterate over processors

This commit is contained in:
Robin Gareus 2023-04-03 15:17:12 +02:00
parent b03358615c
commit 9b23587886
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -4510,9 +4510,11 @@ Route::apply_latency_compensation ()
void
Route::set_block_size (pframes_t nframes)
{
Glib::Threads::RWLock::ReaderLock lm (_processor_lock);
for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
(*i)->set_block_size (nframes);
}
lm.release ();
_session.ensure_buffers (n_process_buffers ());
}
@ -4520,8 +4522,10 @@ Route::set_block_size (pframes_t nframes)
void
Route::protect_automation ()
{
for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i)
Glib::Threads::RWLock::ReaderLock lm (_processor_lock);
for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
(*i)->protect_automation();
}
}
/** Shift automation forwards from a particular place, thereby inserting time.