From 437f928f7d7209c9e4c8ea3e3b5d0e8dc43b54a8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 24 May 2016 11:26:50 +0100 Subject: Add reporting of DCP type. --- src/cpl.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cpl.cc') diff --git a/src/cpl.cc b/src/cpl.cc index b96e15d2..0d8221e2 100644 --- a/src/cpl.cc +++ b/src/cpl.cc @@ -70,6 +70,14 @@ CPL::CPL (boost::filesystem::path file) cxml::Document f ("CompositionPlaylist"); f.read_file (file); + if (f.namespace_uri() == cpl_interop_ns) { + _standard = INTEROP; + } else if (f.namespace_uri() == cpl_smpte_ns) { + _standard = SMPTE; + } else { + boost::throw_exception (XMLError ("Unrecognised CPL namespace " + f.namespace_uri())); + } + _id = remove_urn_uuid (f.string_child ("Id")); _annotation_text = f.optional_string_child ("AnnotationText").get_value_or (""); _metadata.issuer = f.optional_string_child ("Issuer").get_value_or (""); -- cgit v1.2.3