color-lcms: accept ICC profiles of device class ColorSpace

From "color: update color-management protocol to xx-v4" onwards, we
should accept ICC profiles of device class ColorSpace, as the CM&HDR
protocol says. So do that.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2024-08-09 19:32:56 -03:00 committed by Pekka Paalanen
parent 8fdc55c03f
commit a3fd8f3c97
1 changed files with 3 additions and 3 deletions

View File

@ -349,9 +349,9 @@ validate_icc_profile(struct lcmsProfilePtr profile, char **errmsg)
return false;
}
if (class_sig != cmsSigDisplayClass) {
str_printf(errmsg, "ICC profile is required to be of Display device class, "
"but it is %s class (0x%08x)",
if (class_sig != cmsSigDisplayClass && class_sig != cmsSigColorSpaceClass) {
str_printf(errmsg, "ICC profile is required to be of Display or "
"ColorSpace device class, but it is %s class (0x%08x)",
icc_profile_class_name(class_sig), (unsigned)class_sig);
return false;
}