projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2564187
)
Throw an exception on an unknown asset type.
pkl
author
Carl Hetherington
<cth@carlh.net>
Fri, 17 Aug 2018 08:40:16 +0000
(09:40 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 17 Aug 2018 08:40:16 +0000
(09:40 +0100)
src/dcp.cc
patch
|
blob
|
history
diff --git
a/src/dcp.cc
b/src/dcp.cc
index 58195d4b44d05c262256182c1f7a846ff1c2d221..58d05651942cde1c688aadaccb3114e67b9e5016 100644
(file)
--- 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<FontAsset> (new FontAsset (i->first, path)));
+ } else {
+ throw DCPReadError (String::compose("Unknown asset type %1 in PKL", pkl_type));
}
}