[Mplayer-cvslog] CVS: main/libao2 ao_sdl.c,1.24,1.25

Sascha Sommer CVS syncmail at mplayerhq.hu
Sat Mar 13 17:25:10 CET 2004


CVS change done by Sascha Sommer CVS

Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv465/libao2

Modified Files:
	ao_sdl.c 
Log Message:
fix compilation with sdl on mingw patch by Nehal <nehalmistry at gmx.net>

Index: ao_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_sdl.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- ao_sdl.c	5 Jan 2004 21:49:23 -0000	1.24
+++ ao_sdl.c	13 Mar 2004 16:25:08 -0000	1.25
@@ -34,7 +34,11 @@
 LIBAO_EXTERN(sdl)
 
 // Samplesize used by the SDLlib AudioSpec struct
+#ifdef WIN32
+#define SAMPLESIZE 2048
+#else
 #define SAMPLESIZE 1024
+#endif
 
 // General purpose Ring-buffering routines
 
@@ -95,8 +99,8 @@
 
 // end ring buffer stuff
 
-#if defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__))
-/* setenv is missing on solaris, IRIX and HPUX */
+#if defined(WIN32) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__))
+/* setenv is missing on win32, solaris, IRIX and HPUX */
 static void setenv(const char *name, const char *val, int _xx)
 {
   int len  = strlen(name) + strlen(val) + 2;




More information about the MPlayer-cvslog mailing list