summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-18 10:50:14 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-18 10:50:14 +0100
commita6aaf223e085e9ef7f2bc1cc37614ecb13d323ec (patch)
tree1c5bee0672cfdb7e07c67056e6695b8353cc6a33 /src/cpl.cc
parent1c1e46cd8b8b56ec9dd1c1e72b64e6150c27ef80 (diff)
Rename CPL/PKL files to be {cpl,pkl}_uuid.xml rather than
uuid_{cpl,pkl}.xml as this seems to be more conventional.
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index 6fc52be5..67376377 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -195,7 +195,7 @@ CPL::add_reel (shared_ptr<Reel> reel)
boost::filesystem::path
CPL::filename () const
{
- return _directory / String::compose ("%1_cpl.xml", _id);
+ return _directory / String::compose ("cpl_%1.xml", _id);
}
void
@@ -286,7 +286,7 @@ CPL::write_to_assetmap (xmlpp::Node* node) const
asset->add_child("Id")->add_child_text ("urn:uuid:" + _id);
xmlpp::Node* chunk_list = asset->add_child ("ChunkList");
xmlpp::Node* chunk = chunk_list->add_child ("Chunk");
- chunk->add_child("Path")->add_child_text (_id + "_cpl.xml");
+ chunk->add_child("Path")->add_child_text ("cpl_" + _id + ".xml");
chunk->add_child("VolumeIndex")->add_child_text ("1");
chunk->add_child("Offset")->add_child_text("0");
chunk->add_child("Length")->add_child_text (raw_convert<string> (_length));