diff options
author | Robin Gareus <robin@gareus.org> | 2018-11-28 15:24:47 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-11-28 15:24:47 +0100 |
commit | 81857a947c106586e2a90c46cb8f69cdd3ad600d (patch) | |
tree | 43deb2a936b2ffaa9cc05f608a50731772270c11 /libs/ardour/port.cc | |
parent | df28a71252f4593c65ec03611586dfc8a62a834f (diff) |
Consolidate ambiguous engine API calls
available(), connected(), running() were ill-defined and
used interchangeably.
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index 3c31094dae..eb7ca913d2 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -72,7 +72,7 @@ Port::Port (std::string const & n, DataType t, PortFlags f) assert (_name.find_first_of (':') == std::string::npos); - if (!port_engine.available ()) { + if (!port_manager->running ()) { DEBUG_TRACE (DEBUG::Ports, string_compose ("port-engine n/a postpone registering %1\n", name())); _port_handle = 0; // created during ::reestablish() later } else if ((_port_handle = port_engine.register_port (_name, t, _flags)) == 0) { @@ -205,7 +205,7 @@ Port::connected_to (std::string const & o) const return false; } - if (!port_engine.available()) { + if (!port_manager->running()) { return false; } @@ -215,7 +215,7 @@ Port::connected_to (std::string const & o) const int Port::get_connections (std::vector<std::string> & c) const { - if (!port_engine.available()) { + if (!port_manager->running()) { c.insert (c.end(), _connections.begin(), _connections.end()); return c.size(); } |