use new Source::used() rather than SessionPlaylists::source_use_count() to determine...
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 23 Jun 2010 21:43:16 +0000 (21:43 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 23 Jun 2010 21:43:16 +0000 (21:43 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7292 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session_state.cc

index 0f8583a822c5364caf208439f0c7966c4a3331b5..bcb4f3094f0b719eb60d911f09d26d706d12a7eb 100644 (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 ();
                }