X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fvideo_decoder.h;h=e16884568555a72b7c384ffa3a29376ed9681910;hb=bfb8c684886592f325f85c490d9f0aafd7056734;hp=08173d34d3fd9655a2c69faa07cbc15613ba2c08;hpb=de2af791bdfdcd653752cba970e59efc7bf810c7;p=dcpomatic.git diff --git a/src/lib/video_decoder.h b/src/lib/video_decoder.h index 08173d34d..e16884568 100644 --- a/src/lib/video_decoder.h +++ b/src/lib/video_decoder.h @@ -51,6 +51,10 @@ 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); + ContentTime position () const { + return _position; + } + void emit (boost::shared_ptr, Frame frame); boost::signals2::signal Data; @@ -58,6 +62,7 @@ public: private: boost::shared_ptr _content; boost::optional _last_emitted; + ContentTime _position; }; #endif