: Asset (directory, mxf_name, 0, fps, length)
, _channels (0)
{
- _digest = make_digest (mxf_path().string(), 0);
+
}
string
fill_writer_info (&writer_info);
ASDCP::PCM::MXFWriter mxf_writer;
- if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().c_str(), writer_info, audio_desc))) {
+ if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().string().c_str(), writer_info, audio_desc))) {
throw FileError ("could not open audio MXF for writing", mxf_path().string());
}
if (ASDCP_FAILURE (mxf_writer.Finalize())) {
throw MiscError ("could not finalise audio MXF");
}
-
- _digest = make_digest (mxf_path().string(), _progress);
}
void
}
list<string>
-SoundAsset::equals (shared_ptr<const Asset> other, EqualityFlags flags) const
+SoundAsset::equals (shared_ptr<const Asset> other, EqualityOptions opt) const
{
- list<string> notes = Asset::equals (other, flags);
+ list<string> notes = Asset::equals (other, opt);
- if (flags & MXF_INSPECT) {
+ if (opt.flags & MXF_INSPECT) {
ASDCP::PCM::MXFReader reader_A;
- if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().c_str()))) {
+ if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().string().c_str()))) {
cout << "failed " << mxf_path() << "\n";
throw FileError ("could not open MXF file for reading", mxf_path().string());
}
ASDCP::PCM::MXFReader reader_B;
- if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().c_str()))) {
+ if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().string().c_str()))) {
cout << "failed " << other->mxf_path() << "\n";
throw FileError ("could not open MXF file for reading", mxf_path().string());
}