[babl/wip/pippin/inverted-cmyk: 11/11] babl: hold mutex during reference conversions



commit aaf31847e8ade6a8187d8d90c4831a5a6808a65a
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Nov 17 13:23:20 2018 +0100

    babl: hold mutex during reference conversions

 babl/babl-fish-reference.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/babl/babl-fish-reference.c b/babl/babl-fish-reference.c
index 93769d4..1ac503e 100644
--- a/babl/babl-fish-reference.c
+++ b/babl/babl-fish-reference.c
@@ -751,6 +751,7 @@ babl_fish_reference_process_double (const Babl *babl,
     );
   }
 
+  babl_mutex_lock (babl_reference_mutex);
   switch (source_kind)
   {
     case KIND_RGB:
@@ -1056,6 +1057,7 @@ babl_fish_reference_process_double (const Babl *babl,
      }
    break;
   }
+  babl_mutex_unlock (babl_reference_mutex);
 
  /* convert from double model backing target pixel format to final representation */
   convert_from_double (
@@ -1214,7 +1216,6 @@ babl_fish_reference_process_float (const Babl *babl,
     }
 
     {
-
       if(babl_format_with_space ("RGBA float",
                    BABL (BABL ((babl->fish.destination))->format.space)) ==
          babl_format_with_space (dst_name,


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