diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-13 13:26:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-13 13:26:28 +0100 |
| commit | c4fbf3ee49d2523665667f0458124911a0730f8a (patch) | |
| tree | 6d5f50067e5497dc2e92d0ae17394a99efb921ed /src/lib/ffmpeg_decoder.cc | |
| parent | 9b946fc5250eff5a5dd4a661896916fcd5d9bd4b (diff) | |
Fix for changes to libsub API.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index b050fc594..db2d63369 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -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); } } |
