From: Øyvind Kolås Date: Wed, 20 Dec 2017 02:22:00 +0000 (+0100) Subject: babl: re-enable earlier bailing for big path errors X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~21^2~26 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=370d22c25b4fe74ffcaa9aaaa0cfc764c7c47c27;p=babl.git babl: re-enable earlier bailing for big path errors This is one way of dealing with 790658 - that in general is a good idea as well. --- diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index 6a1e194..4b087fc 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -210,7 +210,7 @@ get_conversion_path (PathContext *pc, double path_cost = 0.0; double ref_cost = 0.0; double path_error = 1.0; -#if 0 +#if 1 int i; for (i = 0; i < babl_list_size (pc->current_path); i++) { @@ -219,7 +219,8 @@ get_conversion_path (PathContext *pc, if (path_error - 1.0 <= legal_error ) /* check this before the more accurate measurement of error - - to bail earlier */ + to bail earlier, this also leads to a stricter + discarding of bad fast paths */ #endif { FishPathInstrumentation fpi;