From: Øyvind Kolås Date: Sat, 20 Jul 2019 15:15:29 +0000 (+0200) Subject: babl-fish: use abstraction for checking if space is cmyk X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~11^2~89 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ee2ce028836fc5feda9f42dac1359fa721f30cd2;p=babl.git babl-fish: use abstraction for checking if space is cmyk --- diff --git a/babl/babl-fish.c b/babl/babl-fish.c index a3d299c..8ce2144 100644 --- a/babl/babl-fish.c +++ b/babl/babl-fish.c @@ -282,10 +282,11 @@ babl_fish (const void *source, const Babl *dst_space = (void*)destination_format->format.space; /* we haven't tried to search for suitable path yet */ - if (src_space->space.cmyk.is_cmyk == 0 && - dst_space->space.cmyk.is_cmyk == 0) + if (!babl_space_is_cmyk (src_space) && + !babl_space_is_cmyk (dst_space)) { Babl *fish_path = babl_fish_path (source_format, destination_format); + if (fish_path) { return fish_path;