From 44791cafb91bfe1ee5c0a530c83d9f44b4d2f88f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 17 Jan 2014 17:42:51 +0000 Subject: Asset -> ContentAsset. --- src/dcp.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/dcp.cc') diff --git a/src/dcp.cc b/src/dcp.cc index 653dc87a..e0730020 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -33,7 +33,6 @@ #include #include #include "dcp.h" -#include "asset.h" #include "sound_asset.h" #include "picture_asset.h" #include "subtitle_asset.h" @@ -109,8 +108,8 @@ DCP::write_pkl (string pkl_uuid, bool interop, XMLMetadata const & metadata, sha pkl->add_child("Creator")->add_child_text (metadata.creator); xmlpp::Element* asset_list = pkl->add_child("AssetList"); - list > a = assets (); - for (list >::const_iterator i = a.begin(); i != a.end(); ++i) { + list > a = assets (); + for (list >::const_iterator i = a.begin(); i != a.end(); ++i) { (*i)->write_to_pkl (asset_list); } @@ -192,8 +191,8 @@ DCP::write_assetmap (string pkl_uuid, int pkl_length, bool interop, XMLMetadata (*i)->write_to_assetmap (asset_list); } - list > a = assets (); - for (list >::const_iterator i = a.begin(); i != a.end(); ++i) { + list > a = assets (); + for (list >::const_iterator i = a.begin(); i != a.end(); ++i) { (*i)->write_to_assetmap (asset_list); } @@ -322,17 +321,17 @@ DCP::add_cpl (shared_ptr cpl) class AssetComparator { public: - bool operator() (shared_ptr a, shared_ptr b) { + bool operator() (shared_ptr a, shared_ptr b) { return a->uuid() < b->uuid(); } }; -list > +list > DCP::assets () const { - list > a; + list > a; for (list >::const_iterator i = _cpls.begin(); i != _cpls.end(); ++i) { - list > t = (*i)->assets (); + list > t = (*i)->assets (); a.merge (t); } -- cgit v1.2.3