mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
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:
parent
f4401c5928
commit
8db2e27faa
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue