diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-07 23:03:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-07 23:03:08 +0200 |
commit | 7235d9751bd705a233a666f0e9abc31adc9f4a27 (patch) | |
tree | 42ab8d872a4265993923f8b553e4356091077f51 /libs | |
parent | fd6377a5af29f1e52b868e4be5c3f0c5c2157bf4 (diff) |
Add debug-msg for port-handle registration
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/port.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index b3311932af..15abae7fb6 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -71,11 +71,13 @@ Port::Port (std::string const & n, DataType t, PortFlags f) assert (_name.find_first_of (':') == std::string::npos); if (!port_engine.available ()) { + 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) { cerr << "Failed to register port \"" << _name << "\", reason is unknown from here\n"; throw failed_constructor (); } + DEBUG_TRACE (DEBUG::Ports, string_compose ("registed port %1 handle %2\n", name(), _port_handle)); PortDrop.connect_same_thread (drop_connection, boost::bind (&Port::drop, this)); PortSignalDrop.connect_same_thread (drop_connection, boost::bind (&Port::signal_drop, this)); @@ -507,6 +509,8 @@ Port::reestablish () return -1; } + DEBUG_TRACE (DEBUG::Ports, string_compose ("Port::reestablish %1 handle %2\n", name(), _port_handle)); + reset (); port_manager->PortConnectedOrDisconnected.connect_same_thread (engine_connection, |