[MPlayer-dev-eng] [PATCHES] Xv support under cygwin
Sycotic Smith
sycotic at linuxmail.org
Fri Jul 12 18:52:28 CEST 2002
Forgive me if the format gets screwed up... I NEVER know when typing these out whether it will go through correct or not, web-based email ya know... They work for me, let me know your results. If after applying it gives problems in compiling libvo/vo_xv.c due to undefines, change the order of the includes and libs in config.mak to match configure. I am working on a fix for that as well...
/S. Smith
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.522
diff -u -r1.522 configure
--- configure 12 Jul 2002 03:26:46 -0000 1.522
+++ configure 12 Jul 2002 16:33:46 -0000
@@ -2164,7 +2164,7 @@
int main(void) { (void) XvGetPortAttribute(0, 0, 0, 0); return 0; }
EOF
_xv=no
- cc_check $_inc_x11 $_ld_x11 -lXv && _xv=yes
+ cc_check -lXv $_inc_x11 $_ld_x11 && _xv=yes
else
_xv=no
fi
Index: libvo/vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.100
diff -u -r1.100 vo_xv.c
--- libvo/vo_xv.c 13 Jun 2002 15:08:37 -0000 1.100
+++ libvo/vo_xv.c 12 Jul 2002 16:33:54 -0000
@@ -75,8 +75,8 @@
static int num_buffers=1; // default
static XvImage* xvimage[NUM_BUFFERS];
-#include <sys/ipc.h>
#ifdef HAVE_SHM
+#include <sys/ipc.h>
#include <sys/shm.h>
#include <X11/extensions/XShm.h>
--
Get your free email from www.linuxmail.org
Powered by Outblaze
More information about the MPlayer-dev-eng
mailing list