X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftranscoder.cc;h=8aed205741ec9aaf454ec70026a4b70d68bdaaba;hb=3f3727634b98ce2761a193b9d1e3fc14f51dcbd2;hp=9d8eebe255d63d16dac547ab5851e8388c601c0c;hpb=cf8bbea2de38c4e9ac140f55b27311b7b6dcd814;p=dcpomatic.git diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index 9d8eebe25..8aed20574 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -42,9 +42,9 @@ using boost::shared_ptr; using boost::weak_ptr; using boost::dynamic_pointer_cast; -/** Construct a transcoder using a Decoder that we create and a supplied Encoder. +/** Construct a transcoder. * @param f Film that we are transcoding. - * @param e Encoder to use. + * @param j Job that this transcoder is being used in. */ Transcoder::Transcoder (shared_ptr f, shared_ptr j) : _film (f) @@ -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 > v = _player->get_video (t, true); for (list >::const_iterator i = v.begin(); i != v.end(); ++i) {