diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-22 21:06:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-22 21:06:41 +0100 |
| commit | 080da912e04d156d9260a3a5eead9034d2a72af3 (patch) | |
| tree | 2ebf01d3a283bd2780a3b5b25e6b3bcefb504c9e /src/lib/playlist.cc | |
| parent | 119178eddf7aa38083862a913e8519591b5b01a0 (diff) | |
Allow films to be loaded when content is missing.
Diffstat (limited to 'src/lib/playlist.cc')
| -rw-r--r-- | src/lib/playlist.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc index 1712dc8ff..621b99dd7 100644 --- a/src/lib/playlist.cc +++ b/src/lib/playlist.cc @@ -390,3 +390,15 @@ Playlist::move_later (shared_ptr<Content> c) Changed (); } + +bool +Playlist::content_paths_valid () const +{ + for (ContentList::const_iterator i = _content.begin(); i != _content.end(); ++i) { + if (!(*i)->path_valid ()) { + return false; + } + } + + return true; +} |
