diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-24 11:26:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-24 11:26:50 +0100 |
| commit | 437f928f7d7209c9e4c8ea3e3b5d0e8dc43b54a8 (patch) | |
| tree | 50feb1d8277cf6ad7fb8da83b36b0d5782c55326 /src/cpl.cc | |
| parent | 23644a666637d3db3ccf2007a7cbbcdf4f2d29a2 (diff) | |
Add reporting of DCP type.
Diffstat (limited to 'src/cpl.cc')
| -rw-r--r-- | src/cpl.cc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 (""); |
