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:
Paul Davis 2010-06-23 21:43:16 +00:00
parent f4401c5928
commit 8db2e27faa

View file

@ -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 ();
}