1. pygame
  2. Untitled project
  3. pygame

Commits

illume  committed 0e566d4

jpeg image saving is not thread safe on windows after all.

  • Participants
  • Parent commits 7a00deb
  • Branches default

Comments (0)

Files changed (1)

File src/imageext.c

View file
               (name[namelen - 3]=='j' || name[namelen - 3]=='J'))))
         {
 #ifdef JPEGLIB_H
-            /* jpg save functions seem thread safe on windows. */
+            /* jpg save functions seem *NOT* thread safe at least on windows. */
+            /*
             Py_BEGIN_ALLOW_THREADS;
+            */
             result = SaveJPEG (surf, name);
+            /*
             Py_END_ALLOW_THREADS;
+            */
 #else
             return RAISE (PyExc_SDLError, "No support for jpg compiled in.");
 #endif