summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-16 23:57:19 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-20 22:10:11 +0200
commitd1b4dbb793e2850d032ce3c91f0c91d045ae19dc (patch)
treeccf98662a1da3b9fd280b3f44230a569d4277f0c /src/lib/content.h
parent471dee40c1476aba2ff0cff7a57b31306c50b93e (diff)
Replace encrypted content with black if we have no key (#2234).
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index 7fad2ff79..7c02ee0e3 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -192,6 +192,10 @@ public:
std::string calculate_digest () const;
+ virtual bool can_be_played () const {
+ return true;
+ }
+
/* ChangeType::PENDING and ChangeType::CANCELLED may be emitted from any thread; ChangeType::DONE always from GUI thread */
boost::signals2::signal<void (ChangeType, std::weak_ptr<Content>, int, bool)> Change;