Add instrument before adding route #8317
This may (or may not) fix #8317. Usually changing I/O triggers an auto-connect. The actual issue seems that auto-connect thread runs before the ports are created.
This commit is contained in:
parent
fb9f1eff12
commit
1882c1ba7e
@ -2457,7 +2457,6 @@ Session::new_midi_track (const ChanCount& input, const ChanCount& output, bool s
|
||||
|
||||
failed:
|
||||
if (!new_routes.empty()) {
|
||||
add_routes (new_routes, true, true, order);
|
||||
|
||||
if (instrument) {
|
||||
for (RouteList::iterator r = new_routes.begin(); r != new_routes.end(); ++r) {
|
||||
@ -2481,6 +2480,8 @@ Session::new_midi_track (const ChanCount& input, const ChanCount& output, bool s
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
add_routes (new_routes, true, true, order);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user