#include "util.h"
#include "metadata.h"
#include "exceptions.h"
+#include "dcp_assert.h"
#include "compose.hpp"
#include <libxml++/nodes/element.h>
#include <boost/filesystem.hpp>
}
unsigned int c;
Kumu::hex2bin (_id.c_str(), writer_info->AssetUUID, Kumu::UUID_Length, &c);
- assert (c == Kumu::UUID_Length);
+ DCP_ASSERT (c == Kumu::UUID_Length);
if (_key) {
Kumu::GenRandomUUID (writer_info->ContextID);
unsigned int c;
Kumu::hex2bin (_key_id.c_str(), writer_info->CryptographicKeyID, Kumu::UUID_Length, &c);
- assert (c == Kumu::UUID_Length);
+ DCP_ASSERT (c == Kumu::UUID_Length);
}
}
bool
-MXF::equals (shared_ptr<const Asset> other, EqualityOptions opt, boost::function<void (NoteType, string)> note) const
+MXF::equals (shared_ptr<const Asset> other, EqualityOptions opt, NoteHandler note) const
{
if (!Content::equals (other, opt, note)) {
return false;
}
if (_file != other_mxf->file ()) {
- note (DCP_ERROR, "MXF: names differ");
if (!opt.mxf_names_can_differ) {
+ note (DCP_ERROR, "MXF: names differ");
return false;
+ } else {
+ note (DCP_NOTE, "MXF: names differ");
}
}
case SMPTE:
return "application/mxf";
default:
- assert (false);
+ DCP_ASSERT (false);
}
}