Cope with offsets between video/audio/subtitle data in a muxed file.
[dcpomatic.git] / src / lib / text_subtitle_decoder.cc
index e29bf580992f534d4056e4780fa0b7008d86b915..5f55451088e9b17472b70c0ff304c26c8eb1fd99 100644 (file)
@@ -68,7 +68,7 @@ TextSubtitleDecoder::pass (PassReason, bool)
 
        ContentTimePeriod const p = content_time_period (_subtitles[_next]);
        subtitle->give_text (p, _subtitles[_next]);
-       _position = p.from;
+       _subtitle_position = p.from;
 
        ++_next;
        return false;