Don't add the Auditioner to the route-list

This fixes a bug introduce in 2d11667ce3. The Auditoner
was accidentally added to the shared_ptr<> referenced RouteList.
This commit is contained in:
Robin Gareus 2020-04-23 04:58:51 +02:00
parent 40eefeddd6
commit 6fbcf83779
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1221,11 +1221,13 @@ Session::butler_transport_work ()
void
Session::non_realtime_overwrite (int on_entry, bool& finished)
{
boost::shared_ptr<RouteList> rl = routes.reader();
RouteList rl (*(routes.reader ()));
if (is_auditioning ()) {
rl->push_back (auditioner);
rl.push_back (auditioner);
}
for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) {
for (RouteList::iterator i = rl.begin(); i != rl.end(); ++i) {
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
if (tr && tr->pending_overwrite ()) {
tr->overwrite_existing_buffers ();