[babl] babl: initialize bpp after reading cost in fish cache



commit 1eea90f1d0178db3c28e3e028886eeab09c3b4cf
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Jan 26 15:03:01 2022 +0100

    babl: initialize bpp after reading cost in fish cache

 babl/babl-cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/babl/babl-cache.c b/babl/babl-cache.c
index 63ae19e7e..b48249a66 100644
--- a/babl/babl-cache.c
+++ b/babl/babl-cache.c
@@ -334,7 +334,6 @@ babl_init_db (void)
               babl->fish.source               = from_format;
               babl->fish.destination          = to_format;
               babl->fish_path.conversion_list = babl_list_init_with_size (10);
-              _babl_fish_prepare_bpp (babl);
               _babl_fish_rig_dispatch (babl);
             }
 
@@ -356,6 +355,7 @@ 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)
           {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]