diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-09 00:32:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-09 00:32:17 +0100 |
| commit | 62da6ba041fb333a71272bce1898acb59c00c28d (patch) | |
| tree | 1975158f1a7063d628e9e6c5cf9010b03c9a446e /src | |
| parent | 17af99550ea468bf6702f4973630a24629a65ff7 (diff) | |
| parent | 04a3cc53496a6a23c9b29351f6954597932d7701 (diff) | |
Merge branch '1.0' of ssh://main.carlh.net/home/carl/git/libdcp into 1.0
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)))); } } |
