[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.98,1.99

Arpi of Ize arpi at mplayerhq.hu
Mon Sep 23 23:17:43 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv23021

Modified Files:
	x11_common.c 
Log Message:
Modern versions of OpenSSH listen on localhost to forward the X11 connection
(X11UseLocalhost defaults to yes). The following patch permits to consider
as non local any DISPLAY environment which port is greater or equal to 10
else mplayer tries a local optimization on a distant X server which doesn't
work.

patch by Denis.Ducamp at groar.org


Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -r1.98 -r1.99
--- x11_common.c	18 Sep 2002 01:22:03 -0000	1.98
+++ x11_common.c	23 Sep 2002 21:17:30 -0000	1.99
@@ -303,7 +303,7 @@
 		dispName += 4;
  else if ( strncmp(dispName, "localhost:", 10) == 0)
 		dispName += 9;
- if (*dispName==':') mLocalDisplay=1; else mLocalDisplay=0;
+ if (*dispName==':' && atoi(dispName+1)<10) mLocalDisplay=1; else mLocalDisplay=0;
  mp_msg(MSGT_VO,MSGL_INFO,"vo: X11 running at %dx%d with depth %d and %d bpp (\"%s\" => %s display)\n",
 	vo_screenwidth,vo_screenheight,
 	depth, vo_depthonscreen,




More information about the MPlayer-cvslog mailing list