summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-11 00:23:51 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-11 00:23:51 +0000
commit19ae4ed6403075647118180c241fd68cbbdc24a6 (patch)
tree2711c0e0080a94e7d28dec7a809b9dc58309ab81 /libs/ardour/session.cc
parentcd175818edfd56d3db7d3cdae29124386e790221 (diff)
Comment a few things and add missing process lock when adding a route from a template.
git-svn-id: svn://localhost/ardour2/branches/3.0@8242 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index 11fd1fc635..c80f9c3e2e 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -1933,6 +1933,9 @@ Session::new_route_from_template (uint32_t how_many, const std::string& template
picks up the configuration of the route. During session
loading this normally happens in a different way.
*/
+
+ Glib::Mutex::Lock lm (AudioEngine::instance()->process_lock ());
+
IOChange change (IOChange::Type (IOChange::ConfigurationChanged | IOChange::ConnectionsChanged));
change.after = route->input()->n_ports();
route->input()->changed (change, this);