}
void
-DCPSubtitleDecoder::seek (ContentTime time, bool)
+DCPSubtitleDecoder::seek (ContentTime time, bool accurate)
{
+ Decoder::seek (time, accurate);
+
_next = _subtitles.begin ();
list<dcp::SubtitleString>::const_iterator i = _subtitles.begin ();
while (i != _subtitles.end() && ContentTime::from_seconds (_next->in().as_seconds()) < time) {
}
}
-void
+bool
DCPSubtitleDecoder::pass ()
{
if (_next == _subtitles.end ()) {
- return;
+ return true;
}
/* Gather all subtitles with the same time period that are next
}
subtitle->emit_text (p, s);
- subtitle->set_position (p.from);
+ return false;
}
ContentTimePeriod