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 08173d34d..e9bef24f8 100644 --- a/src/lib/video_decoder.h +++ b/src/lib/video_decoder.h @@ -51,6 +51,14 @@ public: friend struct ffmpeg_pts_offset_test; friend void ffmpeg_decoder_sequential_test_one (boost::filesystem::path file, float fps, int gaps, int video_length); + void set_position (ContentTime position) { + _position = position; + } + + boost::optional<ContentTime> position () const { + return _position; + } + void emit (boost::shared_ptr<const ImageProxy>, Frame frame); boost::signals2::signal<void (ContentVideo)> Data; @@ -58,6 +66,7 @@ public: private: boost::shared_ptr<const Content> _content; boost::optional<Frame> _last_emitted; + boost::optional<ContentTime> _position; }; #endif |
