diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-08 00:59:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-08 00:59:11 +0100 |
| commit | 904e1da6deecc942c98800bdfb44b07c408c369b (patch) | |
| tree | 4e294b8cad1357d7c654dbc54a7d56266060ca12 /src/lib/text_subtitle_decoder.cc | |
| parent | 57c347d254d5d6cd9bb97ba6665b7465401f19c0 (diff) | |
Comment.
Diffstat (limited to 'src/lib/text_subtitle_decoder.cc')
| -rw-r--r-- | src/lib/text_subtitle_decoder.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/text_subtitle_decoder.cc b/src/lib/text_subtitle_decoder.cc index 631e0cc0c..846c3016e 100644 --- a/src/lib/text_subtitle_decoder.cc +++ b/src/lib/text_subtitle_decoder.cc @@ -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(); |
