From 85c565b56de05e93617a8dfd633d6f9d6e9cb30a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 24 Apr 2022 22:38:52 +0200 Subject: Try to remove the PKL object, and make it so that we don't keep the PKL assets around after reading them. But verification needs to see those assets, to check the hashes. --- src/interop_subtitle_asset.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/interop_subtitle_asset.cc') diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index 798f1cda..993be0ae 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -43,6 +43,7 @@ #include "file.h" #include "interop_load_font_node.h" #include "interop_subtitle_asset.h" +#include "pkl_internal.h" #include "raw_convert.h" #include "subtitle_asset_internal.h" #include "subtitle_image.h" @@ -282,15 +283,15 @@ InteropSubtitleAsset::write_to_assetmap (xmlpp::Node* node, boost::filesystem::p void -InteropSubtitleAsset::add_to_pkl (shared_ptr pkl, boost::filesystem::path root) const +InteropSubtitleAsset::add_to_pkl (vector& assets, boost::filesystem::path root, dcp::Standard standard) const { - Asset::add_to_pkl (pkl, root); + Asset::add_to_pkl (assets, root, standard); for (auto i: _subtitles) { auto im = dynamic_pointer_cast (i); if (im) { auto png_image = im->png_image (); - pkl->add_asset (im->id(), optional(), make_digest(png_image), png_image.size(), "image/png"); + assets.push_back(PKLAsset(im->id(), optional(), make_digest(png_image), png_image.size(), "image/png")); } } } -- cgit v1.2.3