/*
- Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include "atmos_content.h"
+#include "warnings.h"
#include <dcp/raw_convert.h>
+DCPOMATIC_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
+DCPOMATIC_ENABLE_WARNINGS
+using std::make_shared;
using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
int const AtmosContentProperty::EDIT_RATE = 700;
shared_ptr<AtmosContent>
AtmosContent::from_xml (Content* parent, cxml::ConstNodePtr node)
{
- return shared_ptr<AtmosContent> (new AtmosContent(parent, node));
+ if (!node->optional_node_child("AtmosLength")) {
+ return {};
+ }
+
+ return make_shared<AtmosContent>(parent, node);
}