diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-25 09:41:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-25 09:41:32 +0100 |
| commit | 6ff5bc54fafcb9332609912514c287ac332ab7e5 (patch) | |
| tree | f1458b2735af96eaa4352601762337c2e1812ef4 /src/pkl.cc | |
| parent | df56c3975454d935b8457d8a8bc1615388db305c (diff) | |
Cope with multiple PKLs in a DCP.
Diffstat (limited to 'src/pkl.cc')
| -rw-r--r-- | src/pkl.cc | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -42,6 +42,7 @@ using std::string; using boost::shared_ptr; +using boost::optional; using namespace dcp; static string const pkl_interop_ns = "http://www.digicine.com/PROTO-ASDCP-PKL-20040311#"; @@ -115,7 +116,7 @@ PKL::write (boost::filesystem::path file, shared_ptr<const CertificateChain> sig doc.write_to_file (file.string(), "UTF-8"); } -string +optional<string> PKL::hash (string id) const { BOOST_FOREACH (shared_ptr<Asset> i, _asset_list) { @@ -124,10 +125,10 @@ PKL::hash (string id) const } } - DCP_ASSERT (false); + return optional<string>(); } -string +optional<string> PKL::type (string id) const { BOOST_FOREACH (shared_ptr<Asset> i, _asset_list) { @@ -136,5 +137,5 @@ PKL::type (string id) const } } - DCP_ASSERT (false); + return optional<string>(); } |
