diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-24 21:39:42 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-24 21:39:42 +0200 |
| commit | c1d782e29c4fd0ae6de7a3c5b0f47833580293bd (patch) | |
| tree | d90ff8554a2a04d60966ab928708187053610228 /src/interop_subtitle_asset.cc | |
| parent | 232e17ff2944d4e0dca311be9b1bc703055d71b4 (diff) | |
wip: add AssetMap and fix everything up.dcp-editor
Diffstat (limited to 'src/interop_subtitle_asset.cc')
| -rw-r--r-- | src/interop_subtitle_asset.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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<shared_ptr<Asset>>& 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<dcp::SubtitleImage> (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()); } } } |
