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

ib subversion at mplayerhq.hu
Wed Nov 18 17:16:39 CET 2015


Author: ib
Date: Wed Nov 18 17:16:39 2015
New Revision: 37555

Log:
Add missing XSync().

Otherwise X11 error BadShmSeg (invalid shared segment parameter)
may occur while calling XShmPutImage().

It has been mistakenly remove in r36386.

Patch by Leonardo Taccari, iamleot gmail com, who observed it on NetBSD.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Wed Nov 18 16:44:54 2015	(r37554)
+++ trunk/gui/wm/ws.c	Wed Nov 18 17:16:39 2015	(r37555)
@@ -1322,6 +1322,7 @@ void wsImageCreate(wsWindow *win, int w,
         win->xImage->data     = win->Shminfo.shmaddr;
         win->Shminfo.readOnly = False;
         XShmAttach(wsDisplay, &win->Shminfo);
+        XSync(wsDisplay, False);
         shmctl(win->Shminfo.shmid, IPC_RMID, 0);
     } else
 #endif


More information about the MPlayer-cvslog mailing list