if (_next != _subtitles.end()) {
first = content_time_period(*_next).from;
}
- subtitle.reset (new SubtitleDecoder (this, content->subtitle, log, first));
+ text.push_back (shared_ptr<TextDecoder> (new TextDecoder (this, content->only_text(), log, first)));
}
void
/* Gather all subtitles with the same time period that are next
on the list. We must emit all subtitles for the same time
- period with the same text_subtitle() call otherwise the
- SubtitleDecoder will assume there is nothing else at the
+ period with the same plain_text() call otherwise the
+ TextDecoder will assume there is nothing else at the
time of emit the first.
*/
/* XXX: image subtitles */
}
- subtitle->emit_text (p, s);
+ only_text()->emit_plain (p, s);
return false;
}