[MPlayer-cvslog] r30260 - trunk/gui/wm/ws.c

reimar subversion at mplayerhq.hu
Sun Jan 10 15:03:10 CET 2010


Author: reimar
Date: Sun Jan 10 15:03:10 2010
New Revision: 30260

Log:
Call XSync after XShmAttach to avoid a possible race-condition with shmctl.
Patch from FreeBSD ports.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Sun Jan 10 14:55:55 2010	(r30259)
+++ trunk/gui/wm/ws.c	Sun Jan 10 15:03:10 2010	(r30260)
@@ -1172,6 +1172,7 @@ void wsCreateImage( wsTWindow * win,int 
    win->xImage->data=win->Shminfo.shmaddr;
    win->Shminfo.readOnly=0;
    XShmAttach( wsDisplay,&win->Shminfo );
+   XSync(wsDisplay, False);
    shmctl( win->Shminfo.shmid,IPC_RMID,0 );
   }
   else


More information about the MPlayer-cvslog mailing list