From 83d7114597fe7aa8afa6bc5d541e8e3970ddf200 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 20 Feb 2023 16:21:56 -0700 Subject: [PATCH] transport master: fix think in 58c5f75fc9cda which stopped checking both port arguments --- libs/ardour/transport_master.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/ardour/transport_master.cc b/libs/ardour/transport_master.cc index 34b4151b54..3c06e5cd35 100644 --- a/libs/ardour/transport_master.cc +++ b/libs/ardour/transport_master.cc @@ -164,14 +164,17 @@ TransportMaster::set_name (std::string const & str) } void -TransportMaster::connection_handler (boost::weak_ptr, std::string, boost::weak_ptr w1, std::string, bool yn) +TransportMaster::connection_handler (boost::weak_ptr w0, std::string, boost::weak_ptr w1, std::string, bool yn) { if (!_port) { return; } - boost::shared_ptr p = w1.lock (); - if (p == _port) { + boost::shared_ptr p0 (w0.lock()); + boost::shared_ptr p1 (w1.lock()); + + if ((p0 && _port == p0) || (p1 && _port == p1)) { + /* it's about us */ /* XXX technically .. if the user makes an N->1 connection to