From 4ab299c540ff7596279be512c2470e75f5c50fd3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 12 Apr 2020 13:36:47 +0200 Subject: Reduce redundant signal emission --- libs/ardour/processor.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/ardour') 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; } -- cgit v1.2.3