}
if (ASDCP_FAILURE (mxf_writer.WriteFrame (frame_buffer, 0, 0))) {
- throw MiscError ("error in writing video MXF");
+ throw MXFFileError ("error in writing video MXF", this->path().string());
}
if (_progress) {
}
if (ASDCP_FAILURE (mxf_writer.Finalize())) {
- throw MiscError ("error in finalising video MXF");
+ throw MXFFileError ("error in finalising video MXF", path().string());
}
}
string hash;
if (ASDCP_FAILURE (_state->mxf_writer.WriteFrame (_state->frame_buffer, 0, 0, &hash))) {
- throw MiscError ("error in writing video MXF");
+ throw MXFFileError ("error in writing video MXF", _asset->path().string());
}
++_frames_written;
assert (!_finalized);
if (ASDCP_FAILURE (_state->mxf_writer.FakeWriteFrame (size))) {
- throw MiscError ("error in writing video MXF");
+ throw MXFFileError ("error in writing video MXF", _asset->path().string());
}
++_frames_written;
assert (!_finalized);
if (ASDCP_FAILURE (_state->mxf_writer.Finalize())) {
- throw MiscError ("error in finalizing video MXF");
+ throw MXFFileError ("error in finalizing video MXF", _asset->path().string());
}
_finalized = true;