# HG changeset patch # User arpi # Date 1032815850 0 # Node ID 5465cbd5c5ef0c0826919ac5fda3129755bbfff7 # Parent 87197e110b4f729f398a6fbc89e880fb160d13ea 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 diff -r 87197e110b4f -r 5465cbd5c5ef libvo/x11_common.c --- a/libvo/x11_common.c Mon Sep 23 19:02:21 2002 +0000 +++ b/libvo/x11_common.c Mon Sep 23 21:17:30 2002 +0000 @@ -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,