Cope with loading a film containing a missing DCP which itself contains subtitles.
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Feb 2024 22:02:48 +0000 (23:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Feb 2024 22:02:48 +0000 (23:02 +0100)
src/lib/dcp_content.cc

index f3751b1d83e665c0ae909ab48ba749be7488b404..e22f69f56c62b8373b58e60dc04fb8d81d311a12 100644 (file)
@@ -740,6 +740,9 @@ DCPContent::can_reference_text (shared_ptr<const Film> film, TextType type, stri
        } catch (dcp::ReadError &) {
                /* We couldn't read the DCP, so it's probably missing */
                return false;
+       } catch (DCPError &) {
+               /* We couldn't read the DCP, so it's probably missing */
+               return false;
        } catch (dcp::KDMDecryptionError &) {
                /* We have an incorrect KDM */
                return false;