From: Carl Hetherington Date: Wed, 6 Mar 2024 00:17:40 +0000 (+0100) Subject: Remove redundant DCPDecoder use. X-Git-Tag: v2.17.13~7 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=fcb8747232c817be9a45f007df8571fb2e9bcb89;p=dcpomatic.git Remove redundant DCPDecoder use. --- diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index c459a9ece..b1febc5d1 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -709,20 +709,6 @@ DCPContent::can_reference_video (shared_ptr film, string& why_not) c bool DCPContent::can_reference_audio (shared_ptr film, string& why_not) const { - shared_ptr decoder; - try { - decoder = make_shared(film, shared_from_this(), false, film->tolerant(), shared_ptr()); - } 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; - } - if (audio && audio->stream()) { auto const channels = audio->stream()->channels(); if (channels != film->audio_channels()) {