Fix empty (black) area calculations when video is set to not be used.
authorCarl Hetherington <cth@carlh.net>
Sun, 17 May 2020 20:22:31 +0000 (22:22 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 17 May 2020 20:22:31 +0000 (22:22 +0200)
src/lib/player.cc

index 059465724def5c930af32ce1b3612712fbbe261c..4f81199a5a49847394ff58834786624bbec2d4a0 100644 (file)
@@ -151,7 +151,7 @@ Player::setup_pieces ()
 bool
 have_video (shared_ptr<const Content> content)
 {
-       return static_cast<bool>(content->video);
+       return static_cast<bool>(content->video) && content->video->use();
 }
 
 bool