Cleanup: remove unnecessary check.
authorCarl Hetherington <cth@carlh.net>
Thu, 9 Feb 2023 21:07:39 +0000 (22:07 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 10 Feb 2023 09:31:15 +0000 (10:31 +0100)
src/lib/player.cc

index 510def583279819e6e4c60239dec3f7481325399..b1dcfaec5f9fbb3d1736719742c9bf3098b30773 100644 (file)
@@ -383,7 +383,7 @@ Player::setup_pieces ()
                        /* Look for content later in the content list with in-use video that overlaps this */
                        auto const period = DCPTimePeriod((*i)->content->position(), (*i)->content->end(film));
                        for (auto j = std::next(i); j != _pieces.end(); ++j) {
-                               if ((*j)->content->video && ignore_overlap((*j)->content->video)) {
+                               if (ignore_overlap((*j)->content->video)) {
                                        (*i)->ignore_video = DCPTimePeriod((*j)->content->position(), (*j)->content->end(film)).overlap(period);
                                }
                        }