-bool
-MXF::equals (shared_ptr<const Asset> other, EqualityOptions opt, boost::function<void (NoteType, string)> 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 != other_mxf->file ()) {
- if (!opt.mxf_names_can_differ) {
- note (DCP_ERROR, "MXF: names differ");
- return false;
- } else {
- note (DCP_NOTE, "MXF: names differ");
- }
- }
-
- return true;
-}
-