diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-03 15:37:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-03 15:37:49 +0200 |
commit | 71ab4614f8535a59bc860715303bc906558983eb (patch) | |
tree | 8b145b5431990c0434e45af9cf781f2274ef5a02 /gtk2_ardour/mixer_ui.cc | |
parent | c16ab3a248244b0ca7002931769336e6fafcc491 (diff) |
Fix fan-out port connection race-condition
This directly creates tracks without auto-connect.
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 8fcb76975b..70674ffbe8 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -996,8 +996,7 @@ Mixer_UI::fan_out (boost::weak_ptr<Route> wr, bool to_busses, bool group) r = rl.front (); assert (r); } else { - list<boost::shared_ptr<AudioTrack> > tl = - _session->new_audio_track (busnames[bn], outputs, NULL, 1, bn, PresentationInfo::max_order, Normal); + list<boost::shared_ptr<AudioTrack> > tl = _session->new_audio_track (busnames[bn], outputs, NULL, 1, bn, PresentationInfo::max_order, Normal, false); r = tl.front (); assert (r); @@ -1012,7 +1011,6 @@ Mixer_UI::fan_out (boost::weak_ptr<Route> wr, bool to_busses, bool group) } return; } - r->input ()->disconnect (this); } to_group.push_back (r); route->output ()->audio (p)->connect (r->input ()->audio (pd.group_channel).get()); |