mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
fix MCP ports hang on device change and multi-surface device reconnect.
This commit is contained in:
parent
53a28c230a
commit
1f85691870
2 changed files with 4 additions and 2 deletions
|
|
@ -809,7 +809,7 @@ MackieControlProtocol::create_surfaces ()
|
||||||
XMLNodeList const& devices = configuration_state->children();
|
XMLNodeList const& devices = configuration_state->children();
|
||||||
for (XMLNodeList::const_iterator d = devices.begin(); d != devices.end(); ++d) {
|
for (XMLNodeList::const_iterator d = devices.begin(); d != devices.end(); ++d) {
|
||||||
XMLProperty* prop = (*d)->property (X_("name"));
|
XMLProperty* prop = (*d)->property (X_("name"));
|
||||||
if (prop && prop->value() == device_name) {
|
if (prop && prop->value() == _device_info.name()) {
|
||||||
this_device = *d;
|
this_device = *d;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,9 @@ Surface::~Surface ()
|
||||||
|
|
||||||
delete _jog_wheel;
|
delete _jog_wheel;
|
||||||
delete _port;
|
delete _port;
|
||||||
|
// the ports take time to release and we may be rebuilding right away
|
||||||
|
// in the case of changing devices.
|
||||||
|
g_usleep (100000);
|
||||||
DEBUG_TRACE (DEBUG::MackieControl, "Surface::~Surface done\n");
|
DEBUG_TRACE (DEBUG::MackieControl, "Surface::~Surface done\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue