Subs successfully exported with thumbs.
[dcpomatic.git] / src / lib / decoder.cc
index 15d74022cf95cb0797c383bf94aac84de8f32a22..e4b892ea4667bf418bac0b8236e3167caf9fad42 100644 (file)
@@ -228,7 +228,7 @@ Decoder::process_audio (uint8_t* data, int size)
  *  @param frame to decode; caller manages memory.
  */
 void
-Decoder::process_video (AVFrame* frame)
+Decoder::process_video (AVFrame* frame, shared_ptr<Subtitle> sub)
 {
        if (_minimal) {
                ++_video_frame;
@@ -303,10 +303,8 @@ Decoder::process_video (AVFrame* frame)
                                image->make_black ();
                        }
 
-                       overlay (image);
-
                        TIMING ("Decoder emits %1", _video_frame);
-                       Video (image, _video_frame);
+                       Video (image, _video_frame, sub);
                        ++_video_frame;
                }
        }