comparison libvo/x11_common.c @ 7492:5465cbd5c5ef

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@groar.org
author arpi
date Mon, 23 Sep 2002 21:17:30 +0000
parents c7a9bcecba07
children 190d14d9130e
comparison
equal deleted inserted replaced
7491:87197e110b4f 7492:5465cbd5c5ef
301 /* slightly improved local display detection AST */ 301 /* slightly improved local display detection AST */
302 if ( strncmp(dispName, "unix:", 5) == 0) 302 if ( strncmp(dispName, "unix:", 5) == 0)
303 dispName += 4; 303 dispName += 4;
304 else if ( strncmp(dispName, "localhost:", 10) == 0) 304 else if ( strncmp(dispName, "localhost:", 10) == 0)
305 dispName += 9; 305 dispName += 9;
306 if (*dispName==':') mLocalDisplay=1; else mLocalDisplay=0; 306 if (*dispName==':' && atoi(dispName+1)<10) mLocalDisplay=1; else mLocalDisplay=0;
307 mp_msg(MSGT_VO,MSGL_INFO,"vo: X11 running at %dx%d with depth %d and %d bpp (\"%s\" => %s display)\n", 307 mp_msg(MSGT_VO,MSGL_INFO,"vo: X11 running at %dx%d with depth %d and %d bpp (\"%s\" => %s display)\n",
308 vo_screenwidth,vo_screenheight, 308 vo_screenwidth,vo_screenheight,
309 depth, vo_depthonscreen, 309 depth, vo_depthonscreen,
310 dispName,mLocalDisplay?"local":"remote"); 310 dispName,mLocalDisplay?"local":"remote");
311 311