Don't throw an exception part-way through resolving assets (#2221).
authorCarl Hetherington <cth@carlh.net>
Wed, 23 Mar 2022 23:01:33 +0000 (00:01 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 23 Mar 2022 23:01:33 +0000 (00:01 +0100)
This was applied to libdcp master in 81c6fcba2.  It seems wrong
to give up in the middle of resolving things, as it might not
work if things happen to be in the wrong order.

src/lib/dcp.cc

index abdfc7f9eaad8aa92b223a44bab1c87f1f663dc1..8fb27db57b47eb845567d6930f77a34d98dda964 100644 (file)
@@ -78,7 +78,7 @@ DCP::cpls () const
        for (auto i: dcps) {
                for (auto j: dcps) {
                        if (i != j) {
-                               i->resolve_refs(j->assets());
+                               i->resolve_refs(j->assets(true));
                        }
                }
        }