diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-23 21:43:16 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-23 21:43:16 +0000 |
commit | 8db2e27faa3be05b57b33c51787cfb89cee49545 (patch) | |
tree | 488efcef5b5e6815d227e61c1d6b9cfd5e3095a7 /libs/ardour | |
parent | f4401c59284258c6aa56707da64e3da32756329f (diff) |
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
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/session_state.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 0f8583a822..bcb4f3094f 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -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 (); } |