diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-07 16:33:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-07 16:33:22 +0000 |
| commit | 9fc6bcde891567ca04fe2d9835ab48a17c9b69a7 (patch) | |
| tree | 27427b47d26a2fc4312eb5ecbd21a5771624c9bc /src | |
| parent | 33de896f03af15f1b544b74f177aae917f66bac3 (diff) | |
Rename mxf filename ignoring stuff slightly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mxf.cc | 8 | ||||
| -rw-r--r-- | src/types.h | 6 |
2 files changed, 7 insertions, 7 deletions
@@ -114,12 +114,12 @@ MXF::equals (shared_ptr<const Asset> other, EqualityOptions opt, NoteHandler not return false; } - if (_file != other_mxf->file ()) { - if (!opt.mxf_names_can_differ) { - note (DCP_ERROR, "MXF: names differ"); + if (_file.leaf() != other_mxf->file().leaf()) { + if (!opt.mxf_filenames_can_differ) { + note (DCP_ERROR, "MXF: filenames differ"); return false; } else { - note (DCP_NOTE, "MXF: names differ"); + note (DCP_NOTE, "MXF: filenames differ"); } } diff --git a/src/types.h b/src/types.h index 08613c79..594bd7b7 100644 --- a/src/types.h +++ b/src/types.h @@ -127,7 +127,7 @@ struct EqualityOptions , max_std_dev_pixel_error (0) , max_audio_sample_error (0) , cpl_annotation_texts_can_differ (false) - , mxf_names_can_differ (false) + , mxf_filenames_can_differ (false) , reel_hashes_can_differ (false) {} @@ -139,8 +139,8 @@ struct EqualityOptions int max_audio_sample_error; /** true if the <AnnotationText> nodes of CPLs are allowed to differ */ bool cpl_annotation_texts_can_differ; - /** true if MXF filenames are allowed to differ */ - bool mxf_names_can_differ; + /** true if MXF file leafnames are allowed to differ */ + bool mxf_filenames_can_differ; /** true if <Hash>es in Reels can differ */ bool reel_hashes_can_differ; }; |
