fix plugin bypass -- thinko in 54d8def6
authorRobin Gareus <robin@gareus.org>
Sun, 10 Jul 2016 02:02:02 +0000 (04:02 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 10 Jul 2016 02:02:02 +0000 (04:02 +0200)
libs/ardour/plugin_insert.cc

index 0beb4c2fdb703b2b01e82fbe5562b8dcaf638dfd..6394f48feeb188f497e129fbbdd0d7f52b959332 100644 (file)
@@ -1346,7 +1346,7 @@ PluginInsert::no_sc_input_map () const
                for (ChanMapping::Mappings::const_iterator tm = mp.begin(); tm != mp.end(); ++tm) {
                        uint32_t ins = natural_input_streams().get(tm->first) - _cached_sidechain_pins.get(tm->first);
                        for (ChanMapping::TypeMapping::const_iterator i = tm->second.begin(); i != tm->second.end(); ++i) {
-                               if (i->second < ins) {
+                               if (i->first < ins) {
                                        rv.set (tm->first, i->first + pc * ins, i->second);
                                }
                        }