diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-08-30 22:28:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-08-30 22:28:06 +0100 |
| commit | e4e038154f0bad3b91a57130c7a88d9fba6a488c (patch) | |
| tree | 52c0972e5de8f7e33162c8985237331807d14db6 /src/exceptions.cc | |
| parent | f7180df03b0e11a697e31eeced2f1817cad14680 (diff) | |
Allow DCP reading to continue even with empty <Path> nodes in ASSETMAP.
Diffstat (limited to 'src/exceptions.cc')
| -rw-r--r-- | src/exceptions.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc index 7516d085..0b8978dc 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2018 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2019 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -129,3 +129,12 @@ MissingSubtitleImageError::MissingSubtitleImageError (string id) { } + +/** The <Path> in the ASSETMAP is empty for asset. I can't see how this is valid, + but it's been seen in the wild with a DCP that claims to come from ClipsterDCI 5.10.0.5. + */ +EmptyAssetPathError::EmptyAssetPathError (string id) + : DCPReadError (String::compose("Asset map path is empty for asset %1", id)) +{ + +} |
