Extract common code out into kdm_for_screen()
[dcpomatic.git] / src / lib / examine_content_job.cc
index a9df63be77daf5b7e7fcf07539a90beadfa8c4cb..3be38863d46e4204bf364da3989ee4b1d7e0fe19 100644 (file)
@@ -38,10 +38,15 @@ ExamineContentJob::ExamineContentJob (shared_ptr<const Film> film, shared_ptr<Co
 
 }
 
+ExamineContentJob::~ExamineContentJob ()
+{
+       stop_thread ();
+}
+
 string
 ExamineContentJob::name () const
 {
-       return _("Examine content");
+       return _("Examining content");
 }
 
 string
@@ -53,7 +58,7 @@ ExamineContentJob::json_name () const
 void
 ExamineContentJob::run ()
 {
-       _content->examine (shared_from_this ());
+       _content->examine (_film, shared_from_this());
        set_progress (1);
        set_state (FINISHED_OK);
 }