Subs successfully exported with thumbs.
[dcpomatic.git] / src / lib / j2k_wav_encoder.cc
index a1f70a08a338f23d480f637ac5c806fc8aa8f196..7bcac483b7778aaa66ffb85bc9a0cde2432b6656 100644 (file)
@@ -105,7 +105,7 @@ J2KWAVEncoder::close_sound_files ()
 }      
 
 void
-J2KWAVEncoder::process_video (shared_ptr<Image> yuv, int frame)
+J2KWAVEncoder::process_video (shared_ptr<Image> yuv, int frame, shared_ptr<Subtitle> sub)
 {
        boost::mutex::scoped_lock lock (_worker_mutex);
 
@@ -126,7 +126,7 @@ J2KWAVEncoder::process_video (shared_ptr<Image> yuv, int frame)
                TIMING ("adding to queue of %1", _queue.size ());
                _queue.push_back (boost::shared_ptr<DCPVideoFrame> (
                                          new DCPVideoFrame (
-                                                 yuv, _opt->out_size, _opt->padding, _fs->scaler, frame, _fs->frames_per_second, s.second,
+                                                 yuv, sub, _opt->out_size, _opt->padding, _fs->scaler, frame, _fs->frames_per_second, s.second,
                                                  Config::instance()->colour_lut_index (), Config::instance()->j2k_bandwidth (),
                                                  _log
                                                  )