Missing setup of AtmosContent in DCP.
authorCarl Hetherington <cth@carlh.net>
Fri, 19 Jun 2020 18:29:31 +0000 (20:29 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 19 Jun 2020 18:29:31 +0000 (20:29 +0200)
src/lib/dcp_content.cc

index 0ce4945..66f5331 100644 (file)
@@ -236,8 +236,12 @@ DCPContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job)
        }
 
        if (examiner->has_atmos()) {
-               boost::mutex::scoped_lock lm (_mutex);
-               atmos.reset (new AtmosContent(this));
+               {
+                       boost::mutex::scoped_lock lm (_mutex);
+                       atmos.reset (new AtmosContent(this));
+               }
+               atmos->set_length (examiner->atmos_length());
+               atmos->set_edit_rate (examiner->atmos_edit_rate());
        }
 
        int texts = 0;