summaryrefslogtreecommitdiff
path: root/src/picture_frame.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-13 16:47:19 +0000
committerCarl Hetherington <cth@carlh.net>2013-03-13 16:47:19 +0000
commitda0878773b192f52694fe5719fe08bc4fe271c63 (patch)
tree9b8b63d07a91a2cfceb89d46b26afcc2b635c339 /src/picture_frame.cc
parent45625f3116a09d3c8415a54bf8d19fdbb3a3aa9b (diff)
parent7d431bf964b377f1402174f8c2d1ac8731f0ed9f (diff)
Merge branch 'master' of /home/carl/git/libdcp
Diffstat (limited to 'src/picture_frame.cc')
-rw-r--r--src/picture_frame.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/picture_frame.cc b/src/picture_frame.cc
index 5d5f12c2..98802101 100644
--- a/src/picture_frame.cc
+++ b/src/picture_frame.cc
@@ -42,14 +42,14 @@ MonoPictureFrame::MonoPictureFrame (string mxf_path, int n)
{
ASDCP::JP2K::MXFReader reader;
if (ASDCP_FAILURE (reader.OpenRead (mxf_path.c_str()))) {
- throw FileError ("could not open MXF file for reading", mxf_path);
+ boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path));
}
/* XXX: unfortunate guesswork on this buffer size */
_buffer = new ASDCP::JP2K::FrameBuffer (4 * Kumu::Megabyte);
if (ASDCP_FAILURE (reader.ReadFrame (n, *_buffer))) {
- throw DCPReadError ("could not read video frame");
+ boost::throw_exception (DCPReadError ("could not read video frame"));
}
}
@@ -97,14 +97,14 @@ StereoPictureFrame::StereoPictureFrame (string mxf_path, int n)
{
ASDCP::JP2K::MXFSReader reader;
if (ASDCP_FAILURE (reader.OpenRead (mxf_path.c_str()))) {
- throw FileError ("could not open MXF file for reading", mxf_path);
+ boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path));
}
/* XXX: unfortunate guesswork on this buffer size */
_buffer = new ASDCP::JP2K::SFrameBuffer (4 * Kumu::Megabyte);
if (ASDCP_FAILURE (reader.ReadFrame (n, *_buffer))) {
- throw DCPReadError ("could not read video frame");
+ boost::throw_exception (DCPReadError ("could not read video frame"));
}
}