X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmatcher.cc;h=182fb306c695d1008b4b8be8d50732af4cddda55;hb=d0d93259d096faa0d410a27450445a3a1a16c430;hp=7b443453922bf537e6e2694929f50c0363ba7579;hpb=288e7e64e9be84b8dbe11f5acb490e64a29d9378;p=dcpomatic.git diff --git a/src/lib/matcher.cc b/src/lib/matcher.cc index 7b4434539..182fb306c 100644 --- a/src/lib/matcher.cc +++ b/src/lib/matcher.cc @@ -35,9 +35,9 @@ Matcher::Matcher (Log* log, int sample_rate, float frames_per_second) } void -Matcher::process_video (boost::shared_ptr i, boost::shared_ptr s) +Matcher::process_video (boost::shared_ptr i, bool same, boost::shared_ptr s) { - Video (i, s); + Video (i, same, s); _video_frames++; _pixel_format = i->pixel_format (); @@ -81,10 +81,10 @@ Matcher::process_end () _log->log (String::compose ("Emitting %1 frames of black video", black_video_frames)); - shared_ptr black (new CompactImage (_pixel_format.get(), _size.get())); + shared_ptr black (new SimpleImage (_pixel_format.get(), _size.get(), true)); black->make_black (); for (int i = 0; i < black_video_frames; ++i) { - Video (black, shared_ptr()); + Video (black, i != 0, shared_ptr()); } /* Now recompute our check value */