summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-14 20:16:58 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-14 20:16:59 +0100
commit24fb1bb38b04869a37a34e51e6e9548768b0d39f (patch)
tree68997b43727b31816a0e71a8ef3ab27489fc87ff
parent98052c06cbe3bd156e1a1a715e439944671dc3ee (diff)
Fix check for return value of EssenceType.v1.8.96
A reporter on the forum is making their own DCPs that don't include an essence type at some point which trips this check as it was before.
-rw-r--r--src/asset_factory.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asset_factory.cc b/src/asset_factory.cc
index d326ba68..be4f6b49 100644
--- a/src/asset_factory.cc
+++ b/src/asset_factory.cc
@@ -62,7 +62,7 @@ dcp::asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_
ASDCP::EssenceType_t type;
auto const result = ASDCP::EssenceType(dcp::filesystem::fix_long_path(path).string().c_str(), type);
- if (result != ASDCP::RESULT_OK) {
+ if (!ASDCP_SUCCESS(result)) {
throw ReadError(String::compose("Could not find essence type (%1)", result.Message()), path.string());
}
switch (type) {