From f1f6fd9f2ac4894217800c8eca17937c14f648ae Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 17 Aug 2018 09:40:16 +0100 Subject: Throw an exception on an unknown asset type. --- src/dcp.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/dcp.cc b/src/dcp.cc index 58195d4b..58d05651 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -261,6 +261,8 @@ DCP::read (bool keep_going, ReadErrors* errors, bool ignore_incorrect_picture_mx } } else if (pkl_type == FontAsset::static_pkl_type(*_standard)) { other_assets.push_back (shared_ptr (new FontAsset (i->first, path))); + } else { + throw DCPReadError (String::compose("Unknown asset type %1 in PKL", pkl_type)); } } -- cgit v1.2.3