Fix assertion failure when turning plugins off.
authorCarl Hetherington <carl@carlh.net>
Thu, 9 Sep 2010 14:40:46 +0000 (14:40 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 9 Sep 2010 14:40:46 +0000 (14:40 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7760 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/plugin_insert.cc

index 650c929afbaa20f05a9a76f42df6b658476445a0..85e96411c28fb35b8442d365a433e25c00ecb9e7 100644 (file)
@@ -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);