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 0ce4945411c3a5e5d0128df437d2dea86d8f2278..66f5331b0decb567b86afb129fd36d485fb8e1bb 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;