diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-14 20:16:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-14 20:16:44 +0200 |
| commit | 4d6c8aaf0167cde3bb63e9014604243bdc47b1a1 (patch) | |
| tree | 13aae09fb07326febeb401930718692b45df2cff /src/asset_factory.cc | |
| parent | 314060f975dc9806f49ec8bbb1c11041a2ac111f (diff) | |
s/DCPReadError/ReadError/g
Diffstat (limited to 'src/asset_factory.cc')
| -rw-r--r-- | src/asset_factory.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/asset_factory.cc b/src/asset_factory.cc index 22c2518e..09c315d5 100644 --- a/src/asset_factory.cc +++ b/src/asset_factory.cc @@ -53,12 +53,12 @@ dcp::asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_ ASDCP::EssenceType_t type; if (ASDCP::EssenceType (path.string().c_str(), type) != ASDCP::RESULT_OK) { - throw DCPReadError ("Could not find essence type"); + throw ReadError ("Could not find essence type"); } switch (type) { case ASDCP::ESS_UNKNOWN: case ASDCP::ESS_MPEG2_VES: - throw DCPReadError ("MPEG2 video essences are not supported"); + throw ReadError ("MPEG2 video essences are not supported"); case ASDCP::ESS_JPEG_2000: try { return shared_ptr<MonoPictureAsset> (new MonoPictureAsset (path)); @@ -80,7 +80,7 @@ dcp::asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_ case ASDCP::ESS_DCDATA_DOLBY_ATMOS: return shared_ptr<AtmosAsset> (new AtmosAsset (path)); default: - throw DCPReadError (String::compose ("Unknown MXF essence type %1 in %2", int(type), path.string())); + throw ReadError (String::compose ("Unknown MXF essence type %1 in %2", int(type), path.string())); } return shared_ptr<Asset>(); |
