LADSPA logarithmic handling patches from nickm and robsch
[ardour.git] / libs / ardour / port_insert.cc
index ffddc681c76802ca901741b470cc719dcf6da12f..a46f7a7da3ea5188721e6c5225fbbff8dc9dc95b 100644 (file)
@@ -72,14 +72,17 @@ PortInsert::run (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nf
                return;
        }
 
-       if (!active()) {
+       if (!_active && !_pending_active) {
                /* deliver silence */
                silence (nframes);
-               return;
+               goto out;
        }
 
        _out->run (bufs, start_frame, end_frame, nframes);
        _input->collect_input (bufs, nframes, ChanCount::ZERO);
+
+  out:
+       _active = _pending_active;
 }
 
 XMLNode&