13
0

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:
Robin Gareus 2020-07-18 21:42:30 +02:00
parent fb9f1eff12
commit 1882c1ba7e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;