projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57c347d
)
Comment.
author
Carl Hetherington
<cth@carlh.net>
Sun, 7 May 2017 23:59:11 +0000
(
00:59
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 7 May 2017 23:59:11 +0000
(
00:59
+0100)
src/lib/text_subtitle_decoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/text_subtitle_decoder.cc
b/src/lib/text_subtitle_decoder.cc
index 631e0cc0cfbf1b9a018447b709c221fd71b043d0..846c3016ee1748f8c97aa08b27a1232ed3a8ec57 100644
(file)
--- 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();