diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-24 18:04:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-24 18:04:38 +0000 |
commit | de24d4f8b11b959a5155051a9f4a7b456b4ab465 (patch) | |
tree | 85acac135bc98d73e392a6ac6cc21953cf1b3e58 /libs/ardour/session_state.cc | |
parent | e72d710734f6371cb2653ad67c862d941e5cc173 (diff) |
add and use Source::empty() since it can be done more efficiently than length(pos) == 0
git-svn-id: svn://localhost/ardour2/branches/3.0@7300 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index f26933d875..c94fa7b976 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1044,14 +1044,10 @@ Session::state(bool full_state) and unused by any regions. */ - cerr << "Source " << siter->second->name() << " has UC = " << siter->second->used() - << " length = " << siter->second->length (0) - << endl; - boost::shared_ptr<FileSource> fs; if ((fs = boost::dynamic_pointer_cast<FileSource> (siter->second)) != 0) { if (!fs->destructive()) { - if (fs->length(fs->timeline_position()) == 0 && !fs->used()) { + if (fs->empty() && !fs->used()) { continue; } } |