diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-02 20:16:05 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-02 20:16:05 +0200 |
| commit | 1f342aad4040b6aa05e8eee13e53153f899c3d9e (patch) | |
| tree | 3a286bc13742c7133e7bfc1e598abb3d4db280d9 | |
| parent | ef5be12ec33d0a7e5348979c7db8088dd3afab47 (diff) | |
Fix failure to import DCPs since Atmos changes.v2.15.85
| -rw-r--r-- | src/lib/atmos_content.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/atmos_content.cc b/src/lib/atmos_content.cc index 58e009c67..2e59b92b7 100644 --- a/src/lib/atmos_content.cc +++ b/src/lib/atmos_content.cc @@ -50,6 +50,10 @@ AtmosContent::AtmosContent (Content* parent, cxml::ConstNodePtr node) shared_ptr<AtmosContent> AtmosContent::from_xml (Content* parent, cxml::ConstNodePtr node) { + if (!node->optional_node_child("AtmosLength")) { + return shared_ptr<AtmosContent>(); + } + return shared_ptr<AtmosContent> (new AtmosContent(parent, node)); } |
