Fix failure to import DCPs since Atmos changes. v2.15.85
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Jul 2020 18:16:05 +0000 (20:16 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 2 Jul 2020 18:16:05 +0000 (20:16 +0200)
src/lib/atmos_content.cc

index 58e009c67273567a6658f2f1faf1b3f508ac8c13..2e59b92b7f288d1653189efd9399a2d7803730b1 100644 (file)
@@ -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));
 }