}
void
-ReelWriter::write (PlayerSubtitles subs, DCPTimePeriod period)
+ReelWriter::write (PlayerCaption subs, TextType type, DCPTimePeriod period)
{
+ /* XXX: we need separate libdcp asset types here and to know how different they are */
+
if (!_subtitle_asset) {
string lang = _film->subtitle_language ();
if (lang.empty ()) {
}
}
- BOOST_FOREACH (SubtitleString i, subs.text) {
+ BOOST_FOREACH (TextCaption i, subs.text) {
/* XXX: couldn't / shouldn't we use period here rather than getting time from the subtitle? */
i.set_in (i.in() - dcp::Time (_period.from.seconds(), i.in().tcr));
i.set_out (i.out() - dcp::Time (_period.from.seconds(), i.out().tcr));