[GnomeMeeting-devel-list] [PATCH] vfakeio locking



Hi,
 
vfakeio.cpp makes two calls to gdk without getting any lock ; this patch
adds the proper locking.
 
Notice that gnomemeeting_threads_* had to be used and not gdk_threads_*,
otherwise gm would freeze on startup with video preview enabled on that
plugin.
 
Other than that startup problem, gdk_threads_* would have been enough.
 
Snark

diff -ur gnomemeeting-cvs-20040211.CVS/src/vfakeio.cpp gnomemeeting-cvs-20040211.CVS.patched/src/vfakeio.cpp
--- gnomemeeting-cvs-20040211.CVS/src/vfakeio.cpp	2004-02-09 21:11:53.000000000 +0100
+++ gnomemeeting-cvs-20040211.CVS.patched/src/vfakeio.cpp	2004-02-17 20:24:14.000000000 +0100
@@ -80,7 +80,9 @@
   if (name == "MovingLogo") {
   
     moving = true;
+    gnomemeeting_threads_enter ();
     orig_pix = gdk_pixbuf_new_from_xpm_data ((const char **) text_logo_xpm);
+    gnomemeeting_threads_leave ();
     
     return TRUE;
   }
@@ -89,7 +91,9 @@
   moving = false;
   
   image_name = gconf_get_string (VIDEO_DEVICES_KEY "image");
+  gnomemeeting_threads_enter ();
   orig_pix =  gdk_pixbuf_new_from_file (image_name, NULL);
+  gnomemeeting_threads_leave ();
   g_free (image_name);
 
   if (orig_pix) 


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