Fix fan-out port connection race-condition
This directly creates tracks without auto-connect.
This commit is contained in:
parent
c16ab3a248
commit
71ab4614f8
@ -996,8 +996,7 @@ Mixer_UI::fan_out (boost::weak_ptr<Route> wr, bool to_busses, bool group)
|
|||||||
r = rl.front ();
|
r = rl.front ();
|
||||||
assert (r);
|
assert (r);
|
||||||
} else {
|
} else {
|
||||||
list<boost::shared_ptr<AudioTrack> > tl =
|
list<boost::shared_ptr<AudioTrack> > tl = _session->new_audio_track (busnames[bn], outputs, NULL, 1, bn, PresentationInfo::max_order, Normal, false);
|
||||||
_session->new_audio_track (busnames[bn], outputs, NULL, 1, bn, PresentationInfo::max_order, Normal);
|
|
||||||
r = tl.front ();
|
r = tl.front ();
|
||||||
assert (r);
|
assert (r);
|
||||||
|
|
||||||
@ -1012,7 +1011,6 @@ Mixer_UI::fan_out (boost::weak_ptr<Route> wr, bool to_busses, bool group)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
r->input ()->disconnect (this);
|
|
||||||
}
|
}
|
||||||
to_group.push_back (r);
|
to_group.push_back (r);
|
||||||
route->output ()->audio (p)->connect (r->input ()->audio (pd.group_channel).get());
|
route->output ()->audio (p)->connect (r->input ()->audio (pd.group_channel).get());
|
||||||
|
Loading…
Reference in New Issue
Block a user