diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sound_asset.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc index 70ed0f29..85c6775f 100644 --- a/src/sound_asset.cc +++ b/src/sound_asset.cc @@ -347,8 +347,9 @@ SoundAssetWriter::write (float const * const * data, int frames) void SoundAssetWriter::write_current_frame () { - if (ASDCP_FAILURE (_state->mxf_writer.WriteFrame (_state->frame_buffer, _state->encryption_context, 0))) { - boost::throw_exception (MiscError ("could not write audio MXF frame")); + ASDCP::Result_t const r = _state->mxf_writer.WriteFrame (_state->frame_buffer, _state->encryption_context, 0); + if (ASDCP_FAILURE (r)) { + boost::throw_exception (MiscError ("could not write audio MXF frame (" + lexical_cast<string> (int (r)) + ")")); } ++_frames_written; |
