diff options
author | Carl Hetherington <carl@carlh.net> | 2009-12-04 19:09:08 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-12-04 19:09:08 +0000 |
commit | 478fd92039443743babec98812f10921209f1e5a (patch) | |
tree | bc21b3a94f455415650b836969067474991e87c6 /libs/ardour/audio_playlist_importer.cc | |
parent | 681e7baa89b265a95a0bc47059766abe3a2b5255 (diff) |
Use a shared_ptr for SessionPlaylists so that it can be explicitly destroyed in ~Session to ease debugging.
git-svn-id: svn://localhost/ardour2/branches/3.0@6282 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_playlist_importer.cc')
-rw-r--r-- | libs/ardour/audio_playlist_importer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/audio_playlist_importer.cc b/libs/ardour/audio_playlist_importer.cc index 81ad169989..cb6bbed907 100644 --- a/libs/ardour/audio_playlist_importer.cc +++ b/libs/ardour/audio_playlist_importer.cc @@ -30,6 +30,7 @@ #include "ardour/session.h" #include "ardour/playlist.h" #include "ardour/playlist_factory.h" +#include "ardour/session_playlists.h" using namespace std; using namespace PBD; @@ -168,7 +169,7 @@ bool AudioPlaylistImporter::_prepare_move () { // Rename - while (session.playlists.by_name (name) || !handler.check_name (name)) { + while (session.playlists->by_name (name) || !handler.check_name (name)) { std::pair<bool, string> rename_pair = Rename (_("A playlist with this name already exists, please rename it."), name); if (!rename_pair.first) { return false; |