It builds.
[dcpomatic.git] / src / lib / subrip_decoder.cc
index 47b6ea04410cdc3d477ded4257a331a347789048..013c6fab7e6d2eab6f93b0ea290ac27fb3dae553 100644 (file)
@@ -30,6 +30,17 @@ SubRipDecoder::SubRipDecoder (shared_ptr<const SubRipContent> content)
 
 }
 
+void
+SubRipDecoder::seek (ContentTime time, bool)
+{
+       _next = 0;
+       list<SubRipSubtitlePiece>::const_iterator i = _subtitles[_next].pieces.begin();
+       while (i != _subtitles[_next].pieces.end() && _subtitles[_next].from < time) {
+               ++i;
+       }
+       
+}
+
 bool
 SubRipDecoder::pass ()
 {