diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-04 11:13:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-04 11:13:04 +0100 |
| commit | af87bfc82beee0b0600558c84c3843dfd5a252f6 (patch) | |
| tree | 6f0cb5a87ba4662ac1e23fae67589be9d374e4f6 /src/cpl.cc | |
| parent | 09ad2806848f5c3609b7915da504f94db099e3af (diff) | |
Split metadata into XML and MXF bits; remove singleton.
Diffstat (limited to 'src/cpl.cc')
| -rw-r--r-- | src/cpl.cc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -168,7 +168,7 @@ CPL::add_reel (shared_ptr<const Reel> reel) } void -CPL::write_xml () const +CPL::write_xml (XMLMetadata const & metadata) const { boost::filesystem::path p; p /= _directory; @@ -181,13 +181,13 @@ CPL::write_xml () const << "<CompositionPlaylist xmlns=\"http://www.smpte-ra.org/schemas/429-7/2006/CPL\">\n" << " <Id>urn:uuid:" << _uuid << "</Id>\n" << " <AnnotationText>" << _name << "</AnnotationText>\n" - << " <IssueDate>" << Metadata::instance()->issue_date << "</IssueDate>\n" - << " <Creator>" << Metadata::instance()->creator << "</Creator>\n" + << " <IssueDate>" << metadata.issue_date << "</IssueDate>\n" + << " <Creator>" << metadata.creator << "</Creator>\n" << " <ContentTitleText>" << _name << "</ContentTitleText>\n" << " <ContentKind>" << content_kind_to_string (_content_kind) << "</ContentKind>\n" << " <ContentVersion>\n" - << " <Id>urn:uri:" << _uuid << "_" << Metadata::instance()->issue_date << "</Id>\n" - << " <LabelText>" << _uuid << "_" << Metadata::instance()->issue_date << "</LabelText>\n" + << " <Id>urn:uri:" << _uuid << "_" << metadata.issue_date << "</Id>\n" + << " <LabelText>" << _uuid << "_" << metadata.issue_date << "</LabelText>\n" << " </ContentVersion>\n" << " <RatingList/>\n" << " <ReelList>\n"; |
