-bool
-MXF::equals (shared_ptr<const Asset> other, EqualityOptions opt, NoteHandler note) const
-{
- if (!Content::equals (other, opt, note)) {
- return false;
- }
-
- shared_ptr<const MXF> other_mxf = dynamic_pointer_cast<const MXF> (other);
- if (!other_mxf) {
- return false;
- }
-
- if (_edit_rate != other_mxf->_edit_rate) {
- note (DCP_ERROR, "MXF: edit rates differ");
- return false;
- }
-
- if (_intrinsic_duration != other_mxf->_intrinsic_duration) {
- note (DCP_ERROR, String::compose ("MXF: intrinsic durations differ (%1 vs %2)", _intrinsic_duration, other_mxf->_intrinsic_duration));
- return false;
- }
-
- 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: filenames differ");
- }
- }
-
- return true;
-}
-