Fix for changes to libsub API.
authorCarl Hetherington <cth@carlh.net>
Wed, 13 Jan 2021 12:26:28 +0000 (13:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 13 Jan 2021 12:26:28 +0000 (13:26 +0100)
src/lib/ffmpeg_decoder.cc

index b050fc5..db2d633 100644 (file)
@@ -736,14 +736,14 @@ FFmpegDecoder::decode_ass_subtitle (string ass, ContentTime from)
        }
 
        sub::RawSubtitle base;
-       list<sub::RawSubtitle> raw = sub::SSAReader::parse_line (
+       auto raw = sub::SSAReader::parse_line (
                base,
                text,
                _ffmpeg_content->video->size().width,
                _ffmpeg_content->video->size().height
                );
 
-       for (auto const& i: sub::collect<list<sub::Subtitle> > (raw)) {
+       for (auto const& i: sub::collect<vector<sub::Subtitle>> (raw)) {
                only_text()->emit_plain_start (from, i);
        }
 }