From d88c2244d4f90d54164fcc856c3ba73809756381 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 28 Jan 2014 00:44:36 +0000 Subject: Various test fixes. --- src/dcp.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/dcp.cc') diff --git a/src/dcp.cc b/src/dcp.cc index 1925ac0b..e4a5678c 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -328,17 +328,17 @@ DCP::write_xml ( shared_ptr signer ) { - string const pkl_uuid = make_uuid (); - boost::filesystem::path const pkl_path = write_pkl (standard, pkl_uuid, metadata, signer); - - write_volindex (standard); - write_assetmap (standard, pkl_uuid, boost::filesystem::file_size (pkl_path), metadata); - list > cpl = cpls (); for (list >::const_iterator i = cpl.begin(); i != cpl.end(); ++i) { string const filename = (*i)->id() + "_cpl.xml"; (*i)->write_xml (_directory / filename, standard, metadata, signer); } + + string const pkl_uuid = make_uuid (); + boost::filesystem::path const pkl_path = write_pkl (standard, pkl_uuid, metadata, signer); + + write_volindex (standard); + write_assetmap (standard, pkl_uuid, boost::filesystem::file_size (pkl_path), metadata); } list > -- cgit v1.2.3