Just emit EmptyAssetPathError from DCP::read, not a MissingAssetError as well.
authorCarl Hetherington <cth@carlh.net>
Sun, 24 Nov 2019 21:31:25 +0000 (22:31 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 24 Nov 2019 21:31:25 +0000 (22:31 +0100)
src/dcp.cc

index a91aa6719399f1b42c7ff38fabec26ef573048fb..c5ad21c4b096e26cf891832436a7d4ab21465605 100644 (file)
@@ -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;
                }