summaryrefslogtreecommitdiff
path: root/src/util.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/util.cc
parent45625f3116a09d3c8415a54bf8d19fdbb3a3aa9b (diff)
parent7d431bf964b377f1402174f8c2d1ac8731f0ed9f (diff)
Merge branch 'master' of /home/carl/git/libdcp
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cc b/src/util.cc
index bd5f32ed..a6d65374 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -67,7 +67,7 @@ libdcp::make_digest (string filename)
{
Kumu::FileReader reader;
if (ASDCP_FAILURE (reader.OpenRead (filename.c_str ()))) {
- throw FileError ("could not open file to compute digest", filename);
+ boost::throw_exception (FileError ("could not open file to compute digest", filename));
}
SHA_CTX sha;
@@ -82,7 +82,7 @@ libdcp::make_digest (string filename)
if (r == Kumu::RESULT_ENDOFFILE) {
break;
} else if (ASDCP_FAILURE (r)) {
- throw FileError ("could not read file to compute digest", filename);
+ boost::throw_exception (FileError ("could not read file to compute digest", filename));
}
SHA1_Update (&sha, read_buffer.Data(), read);
@@ -188,7 +188,7 @@ libdcp::decompress_j2k (uint8_t* data, int64_t size, int reduce)
if (!image) {
opj_destroy_decompress (decoder);
opj_cio_close (cio);
- throw DCPReadError ("could not decode JPEG2000 codestream");
+ boost::throw_exception (DCPReadError ("could not decode JPEG2000 codestream"));
}
opj_cio_close (cio);