fill_writer_info (&writer_info);
ASDCP::PCM::MXFWriter mxf_writer;
-#if BOOST_FILESYSTEM_VERSION == 3
- if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().c_str(), writer_info, audio_desc))) {
-#else
if (ASDCP_FAILURE (mxf_writer.OpenWrite (mxf_path().string().c_str(), writer_info, audio_desc))) {
-#endif
throw FileError ("could not open audio MXF for writing", mxf_path().string());
}
}
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 BOOST_FILESYSTEM_VERSION == 3
- if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().c_str()))) {
-#else
if (ASDCP_FAILURE (reader_A.OpenRead (mxf_path().string().c_str()))) {
-#endif
cout << "failed " << mxf_path() << "\n";
throw FileError ("could not open MXF file for reading", mxf_path().string());
}
ASDCP::PCM::MXFReader reader_B;
-#if BOOST_FILESYSTEM_VERSION == 3
- if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().c_str()))) {
-#else
if (ASDCP_FAILURE (reader_B.OpenRead (other->mxf_path().string().c_str()))) {
-#endif
cout << "failed " << other->mxf_path() << "\n";
throw FileError ("could not open MXF file for reading", mxf_path().string());
}