diff options
Diffstat (limited to 'src/lib/video_decoder.h')
| -rw-r--r-- | src/lib/video_decoder.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/video_decoder.h b/src/lib/video_decoder.h index 4f764d203..156ee4222 100644 --- a/src/lib/video_decoder.h +++ b/src/lib/video_decoder.h @@ -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 |
