diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-23 04:58:51 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-23 04:58:51 +0200 |
commit | 6fbcf837793ec9a8347fd2d12823b9e56587ffc0 (patch) | |
tree | d0d8eabd4175055c5e00316881ab97e56d9fe2de /libs | |
parent | 40eefeddd666ee9a83c07382a28836e5b4aef6cd (diff) |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_transport.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index afd26d0373..b2364054fa 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -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 (); |