[MPlayer-dev-eng] [PATCH] realplayer patch for NetBSD
Bernd Ernesti
mplayer at lists.veego.de
Tue Jun 11 11:59:30 CEST 2002
Hi,
here is the patch to enable the realplayer support on NetBSD.
Btw, looks like libmpdemux/demux_real.c has some debug code in it.
line 448:
fprintf(stderr,"audio block len=%d\n",len);
I disabled it in my source because it caused to print out a lot of
audio block len=588
Bernd
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.499
diff -u -r1.499 configure
--- configure 10 Jun 2002 16:19:46 -0000 1.499
+++ configure 11 Jun 2002 09:48:30 -0000
@@ -3230,8 +3230,11 @@
elif freebsd ; then
_real=yes
echores "yes"
+ elif netbsd ; then
+ _real=yes
+ echores "yes"
else
- echores "no (tested only on Linux and FreeBSD arch)"
+ echores "no (tested only on Linux / FreeBSD and NetBSD arch)"
fi
else
echores "no (dynamic loader support needed)"
Index: libmpcodecs/ad_real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_real.c,v
retrieving revision 1.7
diff -u -r1.7 ad_real.c
--- libmpcodecs/ad_real.c 10 Jun 2002 16:40:20 -0000 1.7
+++ libmpcodecs/ad_real.c 11 Jun 2002 09:48:35 -0000
@@ -31,7 +31,7 @@
return malloc(size);
}
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
void* __ctype_b=NULL;
#endif
Index: libmpcodecs/vd_real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_real.c,v
retrieving revision 1.5
diff -u -r1.5 vd_real.c
--- libmpcodecs/vd_real.c 9 Jun 2002 19:53:13 -0000 1.5
+++ libmpcodecs/vd_real.c 11 Jun 2002 09:48:35 -0000
@@ -48,7 +48,7 @@
// exit(1);
}
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
void ___brk_addr(void) {exit(0);}
char** __environ={NULL};
#undef stderr
More information about the MPlayer-dev-eng
mailing list