From a0c931b6bfb05b56996a75bbfcf378cd44ef18e1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 19 Jun 2020 13:30:02 +0200 Subject: Make Atmos content work more like other content. Now its MXFs are re-written, meaning that they can be encrypted. This commit is mostly just for the backend. We also need a fair few checks/restrictions in the UI: - any present atmos content dictates the project frame rate - no mixed edit rates of atmos content - probably some other things I haven't thought of --- src/lib/dcp_content.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/dcp_content.cc') diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index ca210b558..d2c1df748 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -18,6 +18,7 @@ */ +#include "atmos_content.h" #include "dcp_content.h" #include "video_content.h" #include "audio_content.h" @@ -233,6 +234,11 @@ DCPContent::examine (shared_ptr film, shared_ptr job) as->set_mapping (m); } + if (examiner->has_atmos()) { + boost::mutex::scoped_lock lm (_mutex); + atmos.reset (new AtmosContent(this)); + } + int texts = 0; { boost::mutex::scoped_lock lm (_mutex); -- cgit v1.2.3