SubtitleDecoder::emit_image_start (ContentTime from, shared_ptr<Image> image, dcpomatic::Rect<double> rect)
{
ImageStart (ContentImageSubtitle (from, image, rect));
+ _position = from;
}
void
if (content()->effect()) {
i.set_effect (*content()->effect());
}
- i.set_fade_up_time (dcp::Time(content()->fade_in().seconds(), 1000));
- i.set_fade_down_time (dcp::Time(content()->fade_out().seconds(), 1000));
+ if (content()->fade_in()) {
+ i.set_fade_up_time (dcp::Time(content()->fade_in()->seconds(), 1000));
+ }
+ if (content()->fade_out()) {
+ i.set_fade_down_time (dcp::Time(content()->fade_out()->seconds(), 1000));
+ }
}
TextStart (ContentTextSubtitle (from, s));