diff options
Diffstat (limited to 'src/lib/text_subtitle_decoder.cc')
| -rw-r--r-- | src/lib/text_subtitle_decoder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/text_subtitle_decoder.cc b/src/lib/text_subtitle_decoder.cc index 05bde829c..e29bf5809 100644 --- a/src/lib/text_subtitle_decoder.cc +++ b/src/lib/text_subtitle_decoder.cc @@ -66,7 +66,9 @@ TextSubtitleDecoder::pass (PassReason, bool) return true; } - subtitle->give_text (content_time_period (_subtitles[_next]), _subtitles[_next]); + ContentTimePeriod const p = content_time_period (_subtitles[_next]); + subtitle->give_text (p, _subtitles[_next]); + _position = p.from; ++_next; return false; |
