[Mplayer-cvslog] CVS: main/Gui/wm ws.c,1.10,1.11
Zoltan Ponekker
pontscho at mplayer.dev.hu
Sun Sep 2 19:50:10 CEST 2001
Update of /cvsroot/mplayer/main/Gui/wm
In directory mplayer:/var/tmp.root/cvs-serv15864
Modified Files:
ws.c
Log Message:
add lgb's localhost detect
Index: ws.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/wm/ws.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ws.c 1 Sep 2001 17:53:07 -0000 1.10
+++ ws.c 2 Sep 2001 17:49:48 -0000 1.11
@@ -148,6 +148,17 @@
}
}
+{ /* on remote display XShm will be disabled - LGB */
+ char *dispname=DisplayString(wsDisplay);
+ int localdisp=1;
+ if (dispname&&*dispname!=':') {
+ localdisp=0;
+ wsUseXShm=0;
+ }
+ fprintf(stderr,"[ws] Display name: %s => %s display.\n",dispname,localdisp?"local":"REMOTE");
+ if (!localdisp) fprintf(stderr,"[ws] Remote display, disabling XMITSHM\n");
+}
+
if ( !XShmQueryExtension( wsDisplay ) )
{
fprintf( stderr,"[ws] sorry, your system is not supported X shared memory extension.\n" );
More information about the MPlayer-cvslog
mailing list