Basic pass-through of font information when using DCP subtitles.
[dcpomatic.git] / src / lib / transcoder.cc
index 9d8eebe255d63d16dac547ab5851e8388c601c0c..5718a05b4bc2852d65ee3325e405b0389f6467bc 100644 (file)
@@ -63,6 +63,11 @@ Transcoder::go ()
 
        DCPTime const frame = DCPTime::from_frames (1, _film->video_frame_rate ());
        DCPTime const length = _film->length ();
+
+       if (!_film->burn_subtitles ()) {
+               _writer->write (_player->get_subtitle_fonts ());
+       }
+       
        for (DCPTime t; t < length; t += frame) {
                list<shared_ptr<PlayerVideo> > v = _player->get_video (t, true);
                for (list<shared_ptr<PlayerVideo> >::const_iterator i = v.begin(); i != v.end(); ++i) {