projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix exception when seeking with missing content.
[dcpomatic.git]
/
src
/
lib
/
player.cc
diff --git
a/src/lib/player.cc
b/src/lib/player.cc
index 42551889b03563f2dbea0f8e779ddbcddfdd767e..49d954c58e25745de35c33af359c09bc90121f85 100644
(file)
--- a/
src/lib/player.cc
+++ b/
src/lib/player.cc
@@
-456,6
+456,10
@@
Player::setup_pieces ()
for (ContentList::iterator i = content.begin(); i != content.end(); ++i) {
+ if (!(*i)->paths_valid ()) {
+ continue;
+ }
+
shared_ptr<Piece> piece (new Piece (*i));
/* XXX: into content? */