diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-07-29 02:25:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-07-29 02:25:32 +0200 |
| commit | 03609704034192ae157f6328024989eec58ac1c3 (patch) | |
| tree | 0247a66f0f4c50e781911ce4d64844188576f26f /src | |
| parent | 9f7980e15f14c0d5f6b59e53b9bf939e62df20c9 (diff) | |
Add equality option sound_assets_can_differ.
Diffstat (limited to 'src')
| -rw-r--r-- | src/equality_options.h | 1 | ||||
| -rw-r--r-- | src/sound_asset.cc | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/equality_options.h b/src/equality_options.h index f20e1eb5..1c29be7e 100644 --- a/src/equality_options.h +++ b/src/equality_options.h @@ -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; diff --git a/src/sound_asset.cc b/src/sound_asset.cc index 57110b4f..c31f8bf4 100644 --- a/src/sound_asset.cc +++ b/src/sound_asset.cc @@ -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()); |
