summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) {