summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-21 22:16:55 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-21 22:16:55 +0200
commit60817309adf931b0e76b52e0ba35190a21cb6d9e (patch)
tree3b2509dc9569efde6da5bb7dca664af03279eb44 /src/lib
parent96107588e0ddf383d21ff00b4d3febb313e43794 (diff)
Fix error when loading encrypted DCPs (#2257).
In d1b4dbb793e2850d032ce3c91f0c91d045ae19dc I changed have_video() to look at can_be_played() but forgot to also change have_audio().
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/player.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index f3d78ab32..0f72ed858 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -154,7 +154,7 @@ have_video (shared_ptr<const Content> content)
bool
have_audio (shared_ptr<const Content> content)
{
- return static_cast<bool>(content->audio);
+ return static_cast<bool>(content->audio) && content->can_be_played();
}