Reduce redundant signal emission

This commit is contained in:
Robin Gareus 2020-04-12 13:36:47 +02:00
parent fc34626e50
commit 4ab299c540
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 4 additions and 1 deletions

View File

@ -268,12 +268,15 @@ Processor::configure_io (ChanCount in, ChanCount out)
Derived classes must override and set _configured_output appropriately
if this is not the case
*/
bool changed = _configured_input != in || _configured_output != out;
_configured_input = in;
_configured_output = out;
_configured = true;
ConfigurationChanged (in, out); /* EMIT SIGNAL */
if (changed) {
ConfigurationChanged (in, out); /* EMIT SIGNAL */
}
return true;
}