From 54cbc45a5a40f4eefd64fa41ad9029f5f8f6a84f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 25 Nov 2010 23:46:24 +0000 Subject: 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 --- libs/ardour/send.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ardour/send.cc') 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); } -- cgit v1.2.3