diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-12 13:36:47 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-12 13:36:47 +0200 |
commit | 4ab299c540ff7596279be512c2470e75f5c50fd3 (patch) | |
tree | 460383dc8e6a679d9a6b94dbc8d4be679378f33a /libs | |
parent | fc34626e501ed5c64400f222028e34691f67efa2 (diff) |
Reduce redundant signal emission
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/processor.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index 76ff7c36a1..a99d09049a 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -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; } |