- Piece (boost::shared_ptr<Content> c);
- Piece (boost::shared_ptr<Content> c, boost::shared_ptr<Decoder> d);
- void set_repeat (IncomingVideo video, int num);
- void reset_repeat ();
- bool repeating () const;
- void repeat (Player* player);
-
- boost::shared_ptr<Content> content;
- boost::shared_ptr<Decoder> decoder;
- /** Time of the last video we emitted relative to the start of the DCP */
- Time video_position;
- /** Time of the last audio we emitted relative to the start of the DCP */
- Time audio_position;
-
- IncomingVideo repeat_video;
- int repeat_to_do;
- int repeat_done;
+ Piece (std::shared_ptr<Content> c, std::shared_ptr<Decoder> d, FrameRateChange f)
+ : content (c)
+ , decoder (d)
+ , frc (f)
+ , done (false)
+ {}
+
+ std::shared_ptr<Content> content;
+ std::shared_ptr<Decoder> decoder;
+ boost::optional<dcpomatic::DCPTimePeriod> ignore_video;
+ FrameRateChange frc;
+ bool done;