From: Carl Hetherington Date: Sun, 24 Nov 2019 21:31:25 +0000 (+0100) Subject: Just emit EmptyAssetPathError from DCP::read, not a MissingAssetError as well. X-Git-Tag: v1.6.13 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=refs%2Ftags%2Fv1.6.13;p=libdcp.git Just emit EmptyAssetPathError from DCP::read, not a MissingAssetError as well. --- diff --git a/src/dcp.cc b/src/dcp.cc index 69875235..34000412 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -194,9 +194,10 @@ DCP::read (bool keep_going, ReadErrors* errors, bool ignore_incorrect_picture_mx claims to come from ClipsterDCI 5.10.0.5. */ survivable_error (keep_going, errors, EmptyAssetPathError(i->first)); + continue; } - if (i->second.empty() || !boost::filesystem::exists(path)) { + if (!boost::filesystem::exists(path)) { survivable_error (keep_going, errors, MissingAssetError (path)); continue; }