diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-23 21:17:30 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-23 21:17:30 +0000 |
commit | c84d0142f1a25535361edecf78d18019fb2ffb58 (patch) | |
tree | 992be3ec91e4670f78ecc5d830b56d2e13f4720c /libvo | |
parent | 85da32dd6e20f48cc81f1129d16574ab2eb0522a (diff) | |
download | mpv-c84d0142f1a25535361edecf78d18019fb2ffb58.tar.bz2 mpv-c84d0142f1a25535361edecf78d18019fb2ffb58.tar.xz |
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7493 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/x11_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index acb5bb574a..0977048988 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -303,7 +303,7 @@ int vo_init( void ) 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, |