summaryrefslogtreecommitdiff
path: root/libs/ardour/plugin_insert.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-09-09 14:40:46 +0000
committerCarl Hetherington <carl@carlh.net>2010-09-09 14:40:46 +0000
commitd3ed5483b0e07b0b2666cad75ab319f23d16fd8d (patch)
treecc148b732117990cf1d702226d8f35885313a0af /libs/ardour/plugin_insert.cc
parent57b362cf99c068bf88fd066838460a63b0342610 (diff)
Fix assertion failure when turning plugins off.
git-svn-id: svn://localhost/ardour2/branches/3.0@7760 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r--libs/ardour/plugin_insert.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc
index 650c929afb..85e96411c2 100644
--- a/libs/ardour/plugin_insert.cc
+++ b/libs/ardour/plugin_insert.cc
@@ -369,7 +369,8 @@ PluginInsert::silence (nframes_t nframes)
void
PluginInsert::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end_frame*/, nframes_t nframes, bool)
{
- if (_active || _pending_active) {
+ if (_pending_active) {
+ /* run as normal if we are active or moving from inactive to active */
if (_session.transport_rolling()) {
automation_run (bufs, nframes);