AU: don't consider in-place if there are no inputs

This commit is contained in:
Robin Gareus 2019-09-11 02:31:19 +02:00
parent f84374730a
commit 8dc0c84ba4
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -1602,7 +1602,7 @@ AUPlugin::connect_and_run (BufferSet& bufs,
bool inplace = true; // TODO check plugin-insert in-place ?
ChanMapping::Mappings inmap (in_map.mappings ());
ChanMapping::Mappings outmap (out_map.mappings ());
if (outmap[DataType::AUDIO].size () == 0) {
if (outmap[DataType::AUDIO].size () == 0 || inmap[DataType::AUDIO].size() == 0) {
inplace = false;
}
if (inmap[DataType::AUDIO].size() > 0 && inmap != outmap) {