From b606753e7e5ce05733d52f105388a3a7feeb9eac Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 23 Jun 2010 21:43:16 +0000 Subject: [PATCH] use new Source::used() rather than SessionPlaylists::source_use_count() to determine if a file can be removed git-svn-id: http://subversion.ardour.org/svn/ardour2/ardour2/branches/3.0@7292 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 0f8583a82..bcb4f3094 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 (); } -- 2.11.4.GIT