add some assert for reloading saved plugin pin connections
authorRobin Gareus <robin@gareus.org>
Mon, 18 Apr 2016 15:22:55 +0000 (17:22 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 18 Apr 2016 15:22:55 +0000 (17:22 +0200)
libs/ardour/plugin_insert.cc

index 8e8687a433ab6443051e9c91524fd4921318e1d9..2fdbeaf220a841034d38a7be2e225781360fd6fe 100644 (file)
@@ -1448,11 +1448,13 @@ PluginInsert::configure_io (ChanCount in, ChanCount out)
                        && _in_map.size() == _out_map.size()
                        && _in_map.size() == get_count ()
                 ) {
+               assert (_maps_from_state == false);
                /* If the configuration has not changed, keep the mapping */
                if (old_internal != _configured_internal) {
                        mapping_changed = sanitize_maps ();
                }
        } else if (_match.custom_cfg && _configured) {
+               assert (_maps_from_state == false);
                mapping_changed = sanitize_maps ();
        } else {
 #ifdef MIXBUS