use new Source::used() rather than SessionPlaylists::source_use_count() to determine if a file can be removed
git-svn-id: svn://localhost/ardour2/branches/3.0@7292 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -2500,7 +2500,7 @@ Session::cleanup_sources (CleanupReport& rep)
|
||||
capture files.
|
||||
*/
|
||||
|
||||
if (!playlists->source_use_count(i->second) && i->second->length(i->second->timeline_position()) > 0) {
|
||||
if (!i->second->used() && (i->second->length(i->second->timeline_position() > 0))) {
|
||||
dead_sources.push_back (i->second);
|
||||
i->second->drop_references ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user