summaryrefslogtreecommitdiff
path: root/src/lib/player_video.h
diff options
context:
space:
mode:
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;