diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-08 14:16:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-08 14:16:17 +0100 |
| commit | 265975201012fc0fb83b8cf100e02f4b24cff8ae (patch) | |
| tree | e20c05deb14478c2495f24431ec27f9de4d215ba /src | |
| parent | ac6df088854c0eeb7795436aafcfae7d367f4486 (diff) | |
Better error.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mono_picture_frame.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mono_picture_frame.cc b/src/mono_picture_frame.cc index 79527280..23deb1e8 100644 --- a/src/mono_picture_frame.cc +++ b/src/mono_picture_frame.cc @@ -79,8 +79,10 @@ MonoPictureFrame::MonoPictureFrame (ASDCP::JP2K::MXFReader* reader, int n, share /* XXX: unfortunate guesswork on this buffer size */ _buffer = new ASDCP::JP2K::FrameBuffer (4 * Kumu::Megabyte); - if (ASDCP_FAILURE (reader->ReadFrame (n, *_buffer, c->decryption()))) { - boost::throw_exception (DCPReadError (String::compose ("could not read video frame %1", n))); + ASDCP::Result_t const r = reader->ReadFrame (n, *_buffer, c->decryption()); + + if (ASDCP_FAILURE (r)) { + boost::throw_exception (DCPReadError (String::compose ("could not read video frame %1 (%2)", n, static_cast<int>(r)))); } } |
