summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-01-25 15:30:02 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-01-25 15:30:02 +0000
commit9ac351e60ceac28056d5513e3c346346689d11e0 (patch)
tree9d131a56b5a8acf619da9b6b41297fa1cc584322 /libs/ardour/route.cc
parentd707fa06b79b9ed46323ebe9010c15b198e4058f (diff)
fix #4405, by explicitly cancelling solo when a route's inputs drop to zero
git-svn-id: svn://localhost/ardour2/branches/3.0@11346 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 0f04a3743d..9233a77b14 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -2824,11 +2824,30 @@ Route::nonrealtime_handle_transport_stopped (bool /*abort_ignored*/, bool did_lo
void
Route::input_change_handler (IOChange change, void * /*src*/)
{
+ bool need_to_queue_solo_change = true;
+
if ((change.type & IOChange::ConfigurationChanged)) {
+ need_to_queue_solo_change = false;
configure_processors (0);
_phase_invert.resize (_input->n_ports().n_audio ());
io_changed (); /* EMIT SIGNAL */
}
+
+ if (_fed_by.size() == 0 && _soloed_by_others_upstream) {
+ if (need_to_queue_solo_change) {
+ _session.cancel_solo_after_disconnect (shared_from_this());
+ } else {
+ cancel_solo_after_disconnect ();
+ }
+ }
+}
+
+void
+Route::cancel_solo_after_disconnect ()
+{
+ _soloed_by_others_upstream = 0;
+ set_mute_master_solo ();
+ solo_changed (false, this);
}
uint32_t