Fix PI bypass, fix apply linear pin-connections

Previously this could assert(), copying a buffer to itself.
This commit is contained in:
Robin Gareus
2020-02-26 15:26:55 +01:00
parent 35605ee763
commit f372cc0bf2

View File

@@ -1181,7 +1181,7 @@ PluginInsert::bypass (BufferSet& bufs, pframes_t nframes)
bufs.get_available (*t, out).silence (nframes, 0);
continue;
}
if (in_idx != src_idx) {
if (in_idx != out) {
bufs.get_available (*t, out).read_from (bufs.get_available (*t, in_idx), nframes, 0, 0);
}
}