From c1d782e29c4fd0ae6de7a3c5b0f47833580293bd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 24 Apr 2022 21:39:42 +0200 Subject: wip: add AssetMap and fix everything up. --- src/interop_subtitle_asset.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/interop_subtitle_asset.cc') diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index 798f1cda..a22142dc 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -267,15 +267,15 @@ InteropSubtitleAsset::add_font_assets (vector>& assets) void -InteropSubtitleAsset::write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const +InteropSubtitleAsset::add_to_assetmap (AssetMap& asset_map, boost::filesystem::path root) const { - Asset::write_to_assetmap (node, root); + Asset::add_to_assetmap (asset_map, root); for (auto i: _subtitles) { auto im = dynamic_pointer_cast (i); if (im) { - DCP_ASSERT (im->file()); - write_file_to_assetmap (node, root, im->file().get(), im->id()); + DCP_ASSERT(im->file()); + add_file_to_assetmap(asset_map, root, im->file().get(), im->id()); } } } -- cgit v1.2.3