Somewhat speculative shuffler fix for assertion failure. v2.13.13
authorCarl Hetherington <cth@carlh.net>
Sat, 7 Apr 2018 21:34:07 +0000 (22:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 7 Apr 2018 21:34:07 +0000 (22:34 +0100)
src/lib/shuffler.cc

index 5965631..9c15517 100644 (file)
@@ -42,8 +42,11 @@ struct Comparator
 void
 Shuffler::video (weak_ptr<Piece> weak_piece, ContentVideo video)
 {
-       /* We should only ever see 3D_LEFT / 3D_RIGHT */
-       DCPOMATIC_ASSERT (video.eyes == EYES_LEFT || video.eyes == EYES_RIGHT);
+       if (video.eyes != EYES_LEFT && video.eyes != EYES_RIGHT) {
+               /* Pass through anything that we don't care about */
+               Video (weak_piece, video);
+               return;
+       }
 
        shared_ptr<Piece> piece = weak_piece.lock ();
        DCPOMATIC_ASSERT (piece);