diff options
author | Robin Gareus <robin@gareus.org> | 2019-12-17 00:34:26 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-12-17 00:42:28 +0100 |
commit | 848831d844b8cdfe71bff611d7c0096361963f0c (patch) | |
tree | 72bbeaa2148ea9043571e2ea6e6caa1dd39a31d4 /libs/ardour/session_playlists.cc | |
parent | c144e807effef3eef855fb4e24495f1d3801ae71 (diff) |
Convert Disksteam & Playlists from old 2.x sessions
Diffstat (limited to 'libs/ardour/session_playlists.cc')
-rw-r--r-- | libs/ardour/session_playlists.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/session_playlists.cc b/libs/ardour/session_playlists.cc index 0201c3e71d..4bd47aa0eb 100644 --- a/libs/ardour/session_playlists.cc +++ b/libs/ardour/session_playlists.cc @@ -245,6 +245,24 @@ SessionPlaylists::unassigned (std::list<boost::shared_ptr<Playlist> > & list) } void +SessionPlaylists::update_orig_2X (PBD::ID old_orig, PBD::ID new_orig) +{ + Glib::Threads::Mutex::Lock lm (lock); + + for (List::iterator i = playlists.begin(); i != playlists.end(); ++i) { + if ((*i)->get_orig_track_id() == old_orig) { + (*i)->set_orig_track_id (new_orig); + } + } + + for (List::iterator i = unused_playlists.begin(); i != unused_playlists.end(); ++i) { + if ((*i)->get_orig_track_id() == old_orig) { + (*i)->set_orig_track_id (new_orig); + } + } +} + +void SessionPlaylists::get (vector<boost::shared_ptr<Playlist> >& s) const { Glib::Threads::Mutex::Lock lm (lock); |