From e11276a822289d7d7d91a4f431f386ad28ef16dd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Nov 2016 14:54:31 +0000 Subject: Various work on the audio code. --- src/lib/video_decoder.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/video_decoder.h') 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 position () const { + return _position; + } + void emit (boost::shared_ptr, Frame frame); boost::signals2::signal Data; @@ -58,6 +66,7 @@ public: private: boost::shared_ptr _content; boost::optional _last_emitted; + boost::optional _position; }; #endif -- cgit v1.2.3