diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-02-12 23:22:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-02-12 23:22:28 +0000 |
| commit | 8f964bf49664948312fdfaafd0e9fe20f66c65d6 (patch) | |
| tree | 7d62dfc8e3e12922c84783077186d1b184a6fc0d /src/dcp.cc | |
| parent | db86ed51ba8de94306c949d7b209a7f5f6b75075 (diff) | |
Get assetmap and PKL AnnotationText from XMLMetadata.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -323,11 +323,7 @@ DCP::write_pkl (string file, Standard standard, string pkl_uuid, XMLMetadata met } pkl->add_child("Id")->add_child_text ("urn:uuid:" + pkl_uuid); - - /* XXX: this is a bit of a hack */ - DCP_ASSERT (cpls().size() > 0); - pkl->add_child("AnnotationText")->add_child_text (cpls().front()->annotation_text ()); - + pkl->add_child("AnnotationText")->add_child_text (metadata.annotation_text); pkl->add_child("IssueDate")->add_child_text (metadata.issue_date); pkl->add_child("Issuer")->add_child_text (metadata.issuer); pkl->add_child("Creator")->add_child_text (metadata.creator); @@ -412,7 +408,7 @@ DCP::write_assetmap (Standard standard, string pkl_uuid, boost::filesystem::path } root->add_child("Id")->add_child_text ("urn:uuid:" + make_uuid()); - root->add_child("AnnotationText")->add_child_text ("Created by " + metadata.creator); + root->add_child("AnnotationText")->add_child_text (metadata.annotation_text); switch (standard) { case INTEROP: |
