diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-22 14:54:31 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-04-19 23:04:32 +0100 |
| commit | e11276a822289d7d7d91a4f431f386ad28ef16dd (patch) | |
| tree | 83c1162b3beb7f9fa11b24409309747dd9753959 /src/lib/video_decoder.h | |
| parent | c6b0eb4db564abd41aa0685367a8660d7091e8f8 (diff) | |
Various work on the audio code.
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 |
