diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-28 21:27:03 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-28 21:27:03 +0000 |
| commit | 658695856029c7ae80e3556d07a1a5cb1b51cf1d (patch) | |
| tree | 0de71631b93a903f8e265b285af53dca9d8efdef /src | |
| parent | 85fffccfceaef5652452eb60bef98b0c49a898c6 (diff) | |
Another better error message.
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; |
