babl: initialize bpp after reading cost in fish cache
authorØyvind Kolås <pippin@gimp.org>
Wed, 26 Jan 2022 14:03:01 +0000 (15:03 +0100)
committerØyvind Kolås <pippin@gimp.org>
Wed, 26 Jan 2022 14:03:01 +0000 (15:03 +0100)
babl/babl-cache.c

index 63ae19e7eca18e3e2c34d50753d76de2352ed04a..b48249a6609922b5e10226e06030812ff781c047 100644 (file)
@@ -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)
           {