Stop old frames appearing in the preview after seeks.
[dcpomatic.git] / src / lib / dcp_subtitle_decoder.cc
index 120836643dfcd8019581cf512c6462bd39be3a71..04b264192cd9d43c184449820b9c16213118ed28 100644 (file)
@@ -38,8 +38,10 @@ DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr<const DCPSubtitleContent> con
 }
 
 void
-DCPSubtitleDecoder::seek (ContentTime time, bool)
+DCPSubtitleDecoder::seek (ContentTime time, bool accurate)
 {
+       Decoder::seek (time, accurate);
+
        _next = _subtitles.begin ();
        list<dcp::SubtitleString>::const_iterator i = _subtitles.begin ();
        while (i != _subtitles.end() && ContentTime::from_seconds (_next->in().as_seconds()) < time) {