}
list<string>
-Asset::equals (shared_ptr<const Asset> other, EqualityFlags flags) const
+Asset::equals (shared_ptr<const Asset> other, EqualityOptions opt) const
{
list<string> notes;
- if (flags & LIBDCP_METADATA) {
+ if (opt.flags & LIBDCP_METADATA) {
if (_mxf_name != other->_mxf_name) {
notes.push_back ("MXF names differ");
}
}
}
- if (flags & MXF_BITWISE) {
+ if (opt.flags & MXF_BITWISE) {
if (digest() != other->digest()) {
notes.push_back ("MXF digests differ");
notes.push_back (mxf_path().string() + " and " + other->mxf_path().string() + " sizes differ");
return notes;
}
-
-#if BOOST_FILESYSTEM_VERSION == 3
- ifstream a (mxf_path().c_str(), ios::binary);
- ifstream b (other->mxf_path().c_str(), ios::binary);
-#else
+
ifstream a (mxf_path().string().c_str(), ios::binary);
ifstream b (other->mxf_path().string().c_str(), ios::binary);
-#endif
int buffer_size = 65536;
char abuffer[buffer_size];