#include "atmos_content.h"
+#include "warnings.h"
#include <dcp/raw_convert.h>
+DCPOMATIC_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
+DCPOMATIC_ENABLE_WARNINGS
using std::string;
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));
}