From 0a213e71b3e6b97536022a05f3210f06530bbf91 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 22 Jan 2022 00:04:47 +0100 Subject: [PATCH] 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. --- libs/ardour/track.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 0eaabbb365..44ee92ee39 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -106,6 +106,7 @@ Track::init () */ if (!is_auditioner()) { + Glib::Threads::Mutex::Lock lm (AudioEngine::instance()->process_lock ()); boost::shared_ptr tb (new TriggerBox (_session, data_type ())); tb->set_owner (this); add_processor (tb, _polarity);