Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
[dcpomatic.git] / src / lib / video_decoder.h
index 4f764d203f6406dc2cd979697236abfa7eb86680..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);
@@ -75,6 +83,7 @@ private:
         *  it has no more to give.
         */
        boost::optional<Frame> _no_data_frame;
+       boost::optional<ContentTime> _position;
 };
 
 #endif