/*
- Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2017 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
}
string
-ReelSubtitleAsset::cpl_node_name () const
+ReelSubtitleAsset::cpl_node_name (Standard) const
{
return "MainSubtitle";
}
{
ReelAsset::write_to_cpl (node, standard);
- if (key_id ()) {
+ /* XXX: couldn't this stuff be in the parent class? All child
+ classes seem to do the same thing...?
+ */
+ if (key_id ()) {
/* Find <MainSubtitle> */
- xmlpp::Node* ms = find_child (node, cpl_node_name ());
+ xmlpp::Node* ms = find_child (node, cpl_node_name (standard));
/* Find <Hash> */
xmlpp::Node* hash = find_child (ms, "Hash");
ms->add_child_before (hash, "KeyId")->add_child_text ("urn:uuid:" + key_id().get ());