From ee77b3cf5f59f775e75e628aa28e8f2f9f941530 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 25 Mar 2014 09:41:36 +0000 Subject: It builds. --- src/lib/subrip_decoder.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lib/subrip_decoder.cc') diff --git a/src/lib/subrip_decoder.cc b/src/lib/subrip_decoder.cc index 47b6ea044..013c6fab7 100644 --- a/src/lib/subrip_decoder.cc +++ b/src/lib/subrip_decoder.cc @@ -30,6 +30,17 @@ SubRipDecoder::SubRipDecoder (shared_ptr content) } +void +SubRipDecoder::seek (ContentTime time, bool) +{ + _next = 0; + list::const_iterator i = _subtitles[_next].pieces.begin(); + while (i != _subtitles[_next].pieces.end() && _subtitles[_next].from < time) { + ++i; + } + +} + bool SubRipDecoder::pass () { -- cgit v1.2.3