From: Øyvind Kolås Date: Thu, 27 Jan 2022 01:29:15 +0000 (+0100) Subject: babl: fix fix bpp initialization when loaded from cache X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~4^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=76eb8ae3b8ad310e75bfded7c8c5f931169fafc8;p=babl.git babl: fix fix bpp initialization when loaded from cache --- diff --git a/babl/babl-cache.c b/babl/babl-cache.c index b48249a..a3bd8e0 100644 --- a/babl/babl-cache.c +++ b/babl/babl-cache.c @@ -347,7 +347,10 @@ babl_init_db (void) else if (!strncmp (token2, "cost=", 5)) { if (babl->class_type == BABL_FISH_PATH) + { babl->fish_path.cost = babl_parse_double (token2 + 5); + _babl_fish_prepare_bpp (babl); + } } else if (!strncmp (token2, "pixels=", 7)) { @@ -355,7 +358,6 @@ babl_init_db (void) } token2 = strtok_r (NULL, seps2, &tokp2); } - _babl_fish_prepare_bpp (babl); } else if (to_format && babl && babl->class_type == BABL_FISH_PATH) {