rationalize (a bit) engine start/stop/restart so that it is possible to start up...
[ardour.git] / libs / ardour / bundle.cc
index 9d5640491f8aeee229ade4d6cb3678388ecd6d70..be4b04e36a4966b69691256cb4b32394ff2fa876 100644 (file)
@@ -450,6 +450,8 @@ Bundle::connected_to (boost::shared_ptr<Bundle> other, AudioEngine & engine)
 bool
 Bundle::connected_to_anything (AudioEngine& engine)
 {
+       PortManager& pm (engine);
+
        for (uint32_t i = 0; i < nchannels().n_total(); ++i) {
                Bundle::PortList const & ports = channel_ports (i);
 
@@ -459,7 +461,7 @@ Bundle::connected_to_anything (AudioEngine& engine)
                           rather than doing it with Port.
                        */
 
-                       if (engine.connected (ports[j])) {
+                       if (pm.connected (ports[j])) {
                                return true;
                        }
                }