From 484a9009ff684bedca3f2cf4868e7dd03215d8e8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 25 May 2015 22:25:05 +0100 Subject: Add equality option to allow reel annotation texts to differ. --- src/reel_asset.cc | 8 ++++++-- src/types.h | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/reel_asset.cc b/src/reel_asset.cc index 037a3978..57b709a7 100644 --- a/src/reel_asset.cc +++ b/src/reel_asset.cc @@ -105,8 +105,12 @@ ReelAsset::equals (shared_ptr other, EqualityOptions opt, NoteH if (_annotation_text != other->_annotation_text) { stringstream s; s << "Reel: annotation texts differ (" << _annotation_text << " vs " << other->_annotation_text << ")\n"; - note (DCP_ERROR, s.str ()); - return false; + if (!opt.reel_annotation_texts_can_differ) { + note (DCP_ERROR, s.str ()); + return false; + } else { + note (DCP_NOTE, s.str ()); + } } if (_edit_rate != other->_edit_rate) { diff --git a/src/types.h b/src/types.h index 133abfd5..3c74c45c 100644 --- a/src/types.h +++ b/src/types.h @@ -151,6 +151,7 @@ struct EqualityOptions , max_audio_sample_error (0) , cpl_annotation_texts_can_differ (false) , mxf_filenames_can_differ (false) + , reel_annotation_texts_can_differ (false) , reel_hashes_can_differ (false) {} @@ -164,6 +165,8 @@ struct EqualityOptions bool cpl_annotation_texts_can_differ; /** true if MXF file leafnames are allowed to differ */ bool mxf_filenames_can_differ; + /** true if the nodes of Reels are allowed to differ */ + bool reel_annotation_texts_can_differ; /** true if es in Reels can differ */ bool reel_hashes_can_differ; }; -- cgit v1.2.3