projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
104f43a
)
Don't use old session connections on MCP device change, Solves crash on device change.
author
Len Ovens
<len@ovenwerks.net>
Mon, 12 Oct 2015 05:27:13 +0000
(22:27 -0700)
committer
Len Ovens
<len@ovenwerks.net>
Mon, 12 Oct 2015 05:27:13 +0000
(22:27 -0700)
libs/surfaces/mackie/surface.cc
patch
|
blob
|
history
diff --git
a/libs/surfaces/mackie/surface.cc
b/libs/surfaces/mackie/surface.cc
index 005f1fadb2816255318eee12338fb3e56a2e2963..a7ba8406a526cee6f4d08f7d5a5f82998a2bb4e0 100644
(file)
--- a/
libs/surfaces/mackie/surface.cc
+++ b/
libs/surfaces/mackie/surface.cc
@@
-270,10
+270,12
@@
Surface::set_state (const XMLNode& node, int version)
return 0;
}
- XMLNode* portnode = mynode->child (X_("Port"));
- if (portnode) {
- if (_port->set_state (*portnode, version)) {
- return -1;
+ if (_mcp.session_load ()) {
+ XMLNode* portnode = mynode->child (X_("Port"));
+ if (portnode) {
+ if (_port->set_state (*portnode, version)) {
+ return -1;
+ }
}
}