From 24fb1bb38b04869a37a34e51e6e9548768b0d39f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 Feb 2024 20:16:58 +0100 Subject: Fix check for return value of EssenceType. 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. --- src/asset_factory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3