_empty_condition.notify_all ();
}
+bool
+Writer::can_repeat (Frame frame) const
+{
+ return frame > _reels[video_reel(frame)].start();
+}
+
/** Repeat the last frame that was written to a reel as a new frame.
* @param frame Frame index within the DCP of the new (repeated) frame.
* @param eyes Eyes that this repeated frame image is for.
return;
}
- if (_subtitle_reel->period().to < subs.from) {
+ if (_subtitle_reel->period().to <= subs.from) {
++_subtitle_reel;
}
void write (Data, Frame, Eyes);
void fake_write (Frame, Eyes);
+ bool can_repeat (Frame) const;
void repeat (Frame, Eyes);
void write (boost::shared_ptr<const AudioBuffers>);
void write (PlayerSubtitles subs);