diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-16 23:57:19 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-20 22:10:11 +0200 |
| commit | d1b4dbb793e2850d032ce3c91f0c91d045ae19dc (patch) | |
| tree | ccf98662a1da3b9fd280b3f44230a569d4277f0c /src/lib/player.cc | |
| parent | 471dee40c1476aba2ff0cff7a57b31306c50b93e (diff) | |
Replace encrypted content with black if we have no key (#2234).
Diffstat (limited to 'src/lib/player.cc')
| -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 12a53bc63..58ea4f2de 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -147,7 +147,7 @@ Player::setup_pieces () bool have_video (shared_ptr<const Content> content) { - return static_cast<bool>(content->video) && content->video->use(); + return static_cast<bool>(content->video) && content->video->use() && content->can_be_played(); } |
