[babl] do not print missing fast path message when tolerance is very small
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] do not print missing fast path message when tolerance is very small
- Date: Wed, 15 Mar 2017 21:37:17 +0000 (UTC)
commit 655bd1275ca1f4fb39d80fad9c392b942d7c77b2
Author: Øyvind Kolås <pippin gimp org>
Date: Wed Mar 15 22:36:12 2017 +0100
do not print missing fast path message when tolerance is very small
During the build of examples for GEGL when hashes are being cheched, the
BABL_TOLERANCE is set to 0.0 on purpose. Complaints about missing fast-paths
here are noise.
babl/babl-fish-path.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c
index 4f169d0..77671ff 100644
--- a/babl/babl-fish-path.c
+++ b/babl/babl-fish-path.c
@@ -352,8 +352,12 @@ babl_fish_path (const Babl *source,
#endif
{
static int warnings = 0;
+
+ if (_babl_legal_error() <= 0.0000000001)
+ return NULL;
+
if (warnings++ == 0)
- fprintf (stderr,
+ fprintf (stderr,
"Missing fast-path babl conversion detected, Implementing missing babl fast paths\n"
"accelerates GEGL, GIMP and other software using babl, warnings are printed on\n"
"first occurance of formats used where a conversion has to be synthesized\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]