diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-17 22:22:31 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-17 22:22:31 +0200 |
| commit | 97f0b9b3ed8a2c64b0f2cb0c6d4d07acde51be6b (patch) | |
| tree | 88dc730f0bd518cf8c44896fe02bd8a85efb103f | |
| parent | 5c67ab988cbaf678d2de3d1c145a455213da1e92 (diff) | |
Fix empty (black) area calculations when video is set to not be used.
| -rw-r--r-- | src/lib/player.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<const Content> content) { - return static_cast<bool>(content->video); + return static_cast<bool>(content->video) && content->video->use(); } bool |
