swaroop: Disable play/stop/pause and slider during ad content.
[dcpomatic.git] / src / lib / player_video.h
index cd904af0613d5b9aa842e07cdbacad89e4e24466..11b2c88330512b96ddc205ee104fc87237eab5cc 100644 (file)
@@ -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;