diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc index 0fd5319e40..2e65a8d6f8 100644 --- a/libs/ardour/control_protocol_manager.cc +++ b/libs/ardour/control_protocol_manager.cc @@ -128,11 +128,15 @@ ControlProtocolManager::instantiate (ControlProtocolInfo& cpi) cpi.descriptor = get_descriptor (cpi.path); + DEBUG_TRACE (DEBUG::ControlProtocols, string_compose ("instantiating %1\n", cpi.name)); + if (cpi.descriptor == 0) { error << string_compose (_("control protocol name \"%1\" has no descriptor"), cpi.name) << endmsg; return 0; } + DEBUG_TRACE (DEBUG::ControlProtocols, string_compose ("initializing %1\n", cpi.name)); + if ((cpi.protocol = cpi.descriptor->initialize (cpi.descriptor, _session)) == 0) { error << string_compose (_("control protocol name \"%1\" could not be initialized"), cpi.name) << endmsg; return 0; @@ -257,7 +261,7 @@ ControlProtocolManager::control_protocol_discover (string path) control_protocol_info.push_back (cpi); DEBUG_TRACE (DEBUG::ControlProtocols, - string_compose(_("Control surface protocol discovered: \"%1\""), cpi->name)); + string_compose(_("Control surface protocol discovered: \"%1\"\n"), cpi->name)); } dlclose (descriptor->module);