diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-27 10:24:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-05-27 10:24:22 +0100 |
| commit | 3cab293bf022c87ad3775aec2eb5a7d6e997295d (patch) | |
| tree | f8966722fb776344e195ca4c498ac4c09fec7d4c /src/stereo_picture_frame.cc | |
| parent | 484a9009ff684bedca3f2cf4868e7dd03215d8e8 (diff) | |
Improved error messages; better equals() with corrupted MXFs.
Diffstat (limited to 'src/stereo_picture_frame.cc')
| -rw-r--r-- | src/stereo_picture_frame.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stereo_picture_frame.cc b/src/stereo_picture_frame.cc index ac7d7bf1..3ee08303 100644 --- a/src/stereo_picture_frame.cc +++ b/src/stereo_picture_frame.cc @@ -24,6 +24,7 @@ #include "colour_conversion.h" #include "AS_DCP.h" #include "KM_fileio.h" +#include "compose.hpp" #include <openjpeg.h> #define DCI_GAMMA 2.6 @@ -48,7 +49,7 @@ StereoPictureFrame::StereoPictureFrame (boost::filesystem::path mxf_path, int n) _buffer = new ASDCP::JP2K::SFrameBuffer (4 * Kumu::Megabyte); if (ASDCP_FAILURE (reader.ReadFrame (n, *_buffer))) { - boost::throw_exception (DCPReadError ("could not read video frame")); + boost::throw_exception (DCPReadError (String::compose ("could not read video frame %1 of %2", n, mxf_path.string()))); } } |
