[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.27,1.28
Arpi of Ize
arpi at mplayer.dev.hu
Mon Aug 6 02:22:46 CEST 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv18179
Modified Files:
x11_common.c
Log Message:
better local display connection patch by Adam Tla/lka atlka at pg.gda.pl
Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- x11_common.c 29 Jul 2001 16:40:32 -0000 1.27
+++ x11_common.c 6 Aug 2001 00:22:44 -0000 1.28
@@ -91,7 +91,11 @@
}
XDestroyImage( mXImage );
// XCloseDisplay( mDisplay );
-#warning Better local display detection method is needed.
+/* slightly improved local display detection AST */
+ if ( strncmp(mDisplayName, "unix:", 5) == 0)
+ mDisplayName += 4;
+ else if ( strncmp(mDisplayName, "localhost:", 10) == 0)
+ mDisplayName += 9;
if (*mDisplayName==':') mLocalDisplay=1; else mLocalDisplay=0;
printf("vo: X11 running at %dx%d depth: %d (\"%s\" => %s display)\n",vo_screenwidth,vo_screenheight,vo_depthonscreen,mDisplayName,mLocalDisplay?"local":"remote");
return 1;
More information about the MPlayer-cvslog
mailing list