Allow content parts to not be preset in XML.
[dcpomatic.git] / src / lib / dcp_examiner.cc
index 22b10ab84182f1890eb80804c29a2f97d98be6a0..81cb98b986b4ad09236d31eb28f1b26bb34c45d9 100644 (file)
@@ -51,7 +51,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content)
        , _kdm_valid (false)
 {
        dcp::DCP dcp (content->directory ());
-       dcp.read ();
+       dcp.read (false, 0, true);
 
        if (content->kdm ()) {
                dcp.add (dcp::DecryptedKDM (content->kdm().get(), Config::instance()->decryption_chain()->key().get ()));
@@ -99,7 +99,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content)
                        if (!_audio_frame_rate) {
                                _audio_frame_rate = asset->sampling_rate ();
                        } else if (_audio_frame_rate.get() != asset->sampling_rate ()) {
-                               throw DCPError (_("Mismatched audio frame rates in DCP"));
+                               throw DCPError (_("Mismatched audio sample rates in DCP"));
                        }
 
                        _audio_length += (*i)->main_sound()->duration();