summaryrefslogtreecommitdiff
path: root/src/reel_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-25 22:25:05 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-25 22:25:05 +0100
commit484a9009ff684bedca3f2cf4868e7dd03215d8e8 (patch)
tree3c41d4aa1a608ebf147940a9bf892ab75ec566bc /src/reel_asset.cc
parent6d5c9b454e586ca53c9d59d93fc4b721d6dbf68f (diff)
Add equality option to allow reel annotation texts to differ.
Diffstat (limited to 'src/reel_asset.cc')
-rw-r--r--src/reel_asset.cc8
1 files changed, 6 insertions, 2 deletions
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<const ReelAsset> 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) {