X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fmono_picture_frame.cc;h=964b543b8612f77cc70a196e43b3b7a732fade0a;hb=41fc6e366ad3de85704c35961beaf539ab9ceb8b;hp=474b0715438c5817fdc3c044f4195f14a117ca9b;hpb=566608b965e8ec0e08d9de128405d22ec7fedcd6;p=libdcp.git diff --git a/src/mono_picture_frame.cc b/src/mono_picture_frame.cc index 474b0715..964b543b 100644 --- a/src/mono_picture_frame.cc +++ b/src/mono_picture_frame.cc @@ -32,17 +32,18 @@ using std::string; using boost::shared_ptr; -using namespace libdcp; +using namespace dcp; /** Make a picture frame from a 2D (monoscopic) asset. * @param mxf_path Path to the asset's MXF file. * @param n Frame within the asset, not taking EntryPoint into account. */ -MonoPictureFrame::MonoPictureFrame (string mxf_path, int n, ASDCP::AESDecContext* c) +MonoPictureFrame::MonoPictureFrame (boost::filesystem::path mxf_path, int n, ASDCP::AESDecContext* c) { ASDCP::JP2K::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.string().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 */