summaryrefslogtreecommitdiff
path: root/src/picture_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-09-07 17:28:30 +0100
committerCarl Hetherington <cth@carlh.net>2012-09-07 17:28:30 +0100
commita680f27bddf78d7dcbe52ddb4f8e3e9194d85fd5 (patch)
tree6a39e47781577278dca9c6e44bdfc236c2d65e26 /src/picture_asset.cc
parentd406283ff669a33973b43839da6200d972d25f2a (diff)
Tweaks to dcpinfo.
Diffstat (limited to 'src/picture_asset.cc')
-rw-r--r--src/picture_asset.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/picture_asset.cc b/src/picture_asset.cc
index 4c66bd02..142bc8fc 100644
--- a/src/picture_asset.cc
+++ b/src/picture_asset.cc
@@ -72,12 +72,12 @@ PictureAsset::equals (shared_ptr<const Asset> other, EqualityOptions opt) const
if (opt.flags & MXF_INSPECT) {
ASDCP::JP2K::MXFReader reader_A;
if (ASDCP_FAILURE (reader_A.OpenRead (path().string().c_str()))) {
- throw FileError ("could not open MXF file for reading", path().string());
+ throw MXFFileError ("could not open MXF file for reading", path().string());
}
ASDCP::JP2K::MXFReader reader_B;
if (ASDCP_FAILURE (reader_B.OpenRead (other->path().string().c_str()))) {
- throw FileError ("could not open MXF file for reading", path().string());
+ throw MXFFileError ("could not open MXF file for reading", path().string());
}
ASDCP::JP2K::PictureDescriptor desc_A;
@@ -244,7 +244,7 @@ MonoPictureAsset::MonoPictureAsset (string directory, string mxf_name, int fps,
{
ASDCP::JP2K::MXFReader reader;
if (ASDCP_FAILURE (reader.OpenRead (path().string().c_str()))) {
- throw FileError ("could not open MXF file for reading", path().string());
+ throw MXFFileError ("could not open MXF file for reading", path().string());
}
ASDCP::JP2K::PictureDescriptor desc;
@@ -274,7 +274,7 @@ MonoPictureAsset::construct (sigc::slot<string, int> get_path)
ASDCP::JP2K::MXFWriter mxf_writer;
if (ASDCP_FAILURE (mxf_writer.OpenWrite (path().string().c_str(), writer_info, picture_desc))) {
- throw FileError ("could not open MXF file for writing", path().string());
+ throw MXFFileError ("could not open MXF file for writing", path().string());
}
for (int i = 0; i < _length; ++i) {
@@ -317,7 +317,7 @@ StereoPictureAsset::StereoPictureAsset (string directory, string mxf_name, int f
{
ASDCP::JP2K::MXFSReader reader;
if (ASDCP_FAILURE (reader.OpenRead (path().string().c_str()))) {
- throw FileError ("could not open MXF file for reading", path().string());
+ throw MXFFileError ("could not open MXF file for reading", path().string());
}
ASDCP::JP2K::PictureDescriptor desc;