summaryrefslogtreecommitdiff
path: root/src/lib/player_video.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-29 00:13:49 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-29 00:13:49 +0100
commit92f024ea58c7279b8096e5e9f60f9cb2613e8a91 (patch)
tree02c3b4a91effa6ca53ba511b60d6451c1b1f2009 /src/lib/player_video.h
parentd6825b500b89430cb018d311c090d794ec18faf3 (diff)
swaroop: Disable play/stop/pause and slider during ad content.
Diffstat (limited to 'src/lib/player_video.h')
-rw-r--r--src/lib/player_video.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/player_video.h b/src/lib/player_video.h
index cd904af06..11b2c8833 100644
--- a/src/lib/player_video.h
+++ b/src/lib/player_video.h
@@ -100,6 +100,10 @@ public:
size_t memory_used () const;
+ boost::weak_ptr<Content> content () const {
+ return _content;
+ }
+
private:
boost::shared_ptr<const ImageProxy> _in;
Crop _crop;
@@ -110,7 +114,9 @@ private:
Part _part;
boost::optional<ColourConversion> _colour_conversion;
boost::optional<PositionImage> _text;
- /** Content that we came from. This is so that reset_metadata() can work */
+ /** Content that we came from. This is so that reset_metadata() can work, and also
+ * for variant:swaroop's non-skippable ads.
+ */
boost::weak_ptr<Content> _content;
/** Video frame that we came from. Again, this is for reset_metadata() */
boost::optional<Frame> _video_frame;