diff options
Diffstat (limited to 'src/sound_frame.cc')
| -rw-r--r-- | src/sound_frame.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound_frame.cc b/src/sound_frame.cc index 77f4c7a8..6bc52c1a 100644 --- a/src/sound_frame.cc +++ b/src/sound_frame.cc @@ -28,8 +28,9 @@ using namespace libdcp; SoundFrame::SoundFrame (string mxf_path, int n, ASDCP::AESDecContext* c) { ASDCP::PCM::MXFReader reader; - if (ASDCP_FAILURE (reader.OpenRead (mxf_path.c_str()))) { - boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path)); + Kumu::Result_t r = reader.OpenRead (mxf_path.c_str()); + if (ASDCP_FAILURE (r)) { + boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path, r)); } /* XXX: unfortunate guesswork on this buffer size */ |
