Further fixes and tidying to 'better-seek'.
[dcpomatic.git] / src / lib / video_decoder.h
index 2442d3173fcb77f66f0c0f955f178ba9b576be30..156ee42221a0d645a1ac8998934afc6c98ccae78 100644 (file)
@@ -60,6 +60,14 @@ public:
        void seek (ContentTime time, bool accurate);
        void give (boost::shared_ptr<const ImageProxy>, Frame frame);
 
+       boost::optional<ContentTime> position () const {
+               return _position;
+       }
+
+       void reset_position () {
+               _position.reset ();
+       }
+
 private:
 
        std::list<ContentVideo> decoded (Frame frame);
@@ -67,7 +75,6 @@ private:
        void fill_both_eyes (VideoFrame from, VideoFrame to);
 
        boost::shared_ptr<const Content> _content;
-       boost::shared_ptr<Log> _log;
        std::list<ContentVideo> _decoded;
        boost::shared_ptr<Image> _black_image;
        boost::optional<ContentTime> _last_seek_time;
@@ -76,6 +83,7 @@ private:
         *  it has no more to give.
         */
        boost::optional<Frame> _no_data_frame;
+       boost::optional<ContentTime> _position;
 };
 
 #endif