diff options
author | Carl Hetherington <carl@carlh.net> | 2010-11-25 23:46:24 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-11-25 23:46:24 +0000 |
commit | 54cbc45a5a40f4eefd64fa41ad9029f5f8f6a84f (patch) | |
tree | 558e7cb27683030787fcb4d5654bd4b58ebd8e21 /libs/ardour/send.cc | |
parent | 28c004f4fb0750b6a4236552bcc8de4946b9b164 (diff) |
Prevent removal of route inputs when the plugins cannot be configured with the new number. Rework locking so that the process lock is held from the point that a route input is removed until after the processors are reconfigured; fixes #3548.
git-svn-id: svn://localhost/ardour2/branches/3.0@8089 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/send.cc')
-rw-r--r-- | libs/ardour/send.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index bfbceb49af..74212155ec 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -217,6 +217,7 @@ Send::can_support_io_configuration (const ChanCount& in, ChanCount& out) const return true; } +/** Caller must not hold process lock */ bool Send::configure_io (ChanCount in, ChanCount out) { @@ -225,6 +226,7 @@ Send::configure_io (ChanCount in, ChanCount out) } if (_output) { + Glib::Mutex::Lock lm (AudioEngine::instance()->process_lock()); _output->ensure_io (out, false, 0); } |