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 /gtk2_ardour/processor_box.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 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 673b3dc1bb..99875a2a47 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -801,6 +801,7 @@ ProcessorBox::choose_insert () _route->add_processor (processor, _placement); } +/* Caller must not hold process lock */ void ProcessorBox::choose_send () { @@ -813,6 +814,7 @@ ProcessorBox::choose_send () /* XXX need processor lock on route */ try { + Glib::Mutex::Lock lm (AudioEngine::instance()->process_lock()); send->output()->ensure_io (outs, false, this); } catch (AudioEngine::PortRegistrationFailure& err) { error << string_compose (_("Cannot set up new send: %1"), err.what()) << endmsg; |