From: Carl Hetherington Date: Sun, 17 May 2020 20:22:31 +0000 (+0200) Subject: Fix empty (black) area calculations when video is set to not be used. X-Git-Tag: v2.15.74~4 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=97f0b9b3ed8a2c64b0f2cb0c6d4d07acde51be6b Fix empty (black) area calculations when video is set to not be used. --- diff --git a/src/lib/player.cc b/src/lib/player.cc index 059465724..4f81199a5 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -151,7 +151,7 @@ Player::setup_pieces () bool have_video (shared_ptr content) { - return static_cast(content->video); + return static_cast(content->video) && content->video->use(); } bool