Comment.
authorCarl Hetherington <cth@carlh.net>
Sun, 7 May 2017 23:59:11 +0000 (00:59 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 7 May 2017 23:59:11 +0000 (00:59 +0100)
src/lib/text_subtitle_decoder.cc

index 631e0cc0cfbf1b9a018447b709c221fd71b043d0..846c3016ee1748f8c97aa08b27a1232ed3a8ec57 100644 (file)
@@ -44,6 +44,9 @@ TextSubtitleDecoder::TextSubtitleDecoder (shared_ptr<const TextSubtitleContent>
 void
 TextSubtitleDecoder::seek (ContentTime time, bool accurate)
 {
+       /* It's worth back-tracking a little here as decoding is cheap and it's nice if we don't miss
+          too many subtitles when seeking.
+       */
        time -= ContentTime::from_seconds (5);
        if (time < ContentTime()) {
                time = ContentTime();