13
0

Process-lock is required when changing processors

This is somewhat unfortunate, since session.cc also takes the
lock shortly afterward to call ->ensure_io()

This should be consolidated before release.
This commit is contained in:
Robin Gareus 2022-01-22 00:04:47 +01:00
parent 2fa8c7cd42
commit 0a213e71b3
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -106,6 +106,7 @@ Track::init ()
*/ */
if (!is_auditioner()) { if (!is_auditioner()) {
Glib::Threads::Mutex::Lock lm (AudioEngine::instance()->process_lock ());
boost::shared_ptr<TriggerBox> tb (new TriggerBox (_session, data_type ())); boost::shared_ptr<TriggerBox> tb (new TriggerBox (_session, data_type ()));
tb->set_owner (this); tb->set_owner (this);
add_processor (tb, _polarity); add_processor (tb, _polarity);