Fix exception when seeking with missing content.
[dcpomatic.git] / src / lib / player.cc
index 42551889b03563f2dbea0f8e779ddbcddfdd767e..49d954c58e25745de35c33af359c09bc90121f85 100644 (file)
@@ -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? */