Add equality option sound_assets_can_differ.
authorCarl Hetherington <cth@carlh.net>
Sat, 29 Jul 2023 00:25:32 +0000 (02:25 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 29 Jul 2023 00:25:32 +0000 (02:25 +0200)
src/equality_options.h
src/sound_asset.cc

index f20e1eb5a0eda7af60abf4b6de7c17e736ad9377..1c29be7e1a936ba96fe37c558ad5c6fd040046aa 100644 (file)
@@ -75,6 +75,7 @@ public:
        /** true if IssueDate nodes can differ */
        bool issue_dates_can_differ = false;
        bool load_font_nodes_can_differ = false;
+       bool sound_assets_can_differ = false;
        bool keep_going = false;
        /** true to save the last pair of different image subtitles to the current working directory */
        bool export_differing_subtitles = false;
index 57110b4f82e3b16a78913e7c7f6792b8366b8551..c31f8bf44cd173e7791bbbae676082cab8921e92 100644 (file)
@@ -133,6 +133,10 @@ SoundAsset::SoundAsset (Fraction edit_rate, int sampling_rate, int channels, Lan
 bool
 SoundAsset::equals(shared_ptr<const Asset> other, EqualityOptions const& opt, NoteHandler note) const
 {
+       if (opt.sound_assets_can_differ) {
+               return true;
+       }
+
        ASDCP::PCM::MXFReader reader_A;
        DCP_ASSERT (file());
        auto r = reader_A.OpenRead (file()->string().c_str());