Add Piece::seek().
[dcpomatic.git] / src / lib / piece.h
index a69c6f5cc6a5506a0106e6dc6bc363279a56b3bb..56b16fb282f646b98403b9db74b70cbd12045a81 100644 (file)
@@ -56,7 +56,7 @@ public:
        VideoFrameType video_frame_type () const;
 
        FrameRateChange frame_rate_change () const {
-               return frc;
+               return _frc;
        }
 
        dcpomatic::DCPTime position () const;
@@ -71,16 +71,18 @@ public:
        std::shared_ptr<Decoder> decoder_for (std::shared_ptr<Content> content) const;
 
        dcpomatic::DCPTime decoder_position () const;
+       bool has_text () const;
+       void seek (std::shared_ptr<const Film> film, dcpomatic::DCPTime time, bool accurate);
 
        std::shared_ptr<Decoder> decoder;
        boost::optional<dcpomatic::DCPTimePeriod> ignore_video;
-       FrameRateChange frc;
        bool done = false;
 
 private:
        friend struct overlap_video_test1;
 
        std::shared_ptr<Content> _content;
+       FrameRateChange _frc;
        std::map<AudioStreamPtr, dcpomatic::DCPTime> _stream_last_push_end;
 };