diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-25 10:26:11 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-25 10:26:11 +0200 |
| commit | 7c24b62d51e0ddf14af451ef5a543f07b69f111e (patch) | |
| tree | 6628a7624fb554a4c8ee2ee561fa8228a0bde153 /src/interop_subtitle_asset.cc | |
| parent | 764a1cc30404861757d9a99e7f0e20341d6ea353 (diff) | |
Move AssetMap handling out to a separate class.
Diffstat (limited to 'src/interop_subtitle_asset.cc')
| -rw-r--r-- | src/interop_subtitle_asset.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index 798f1cda..f3552abe 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); + 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()); } } } |
