[MPlayer-dev-eng] ai_oss.c should check for USE_OSS_AUDIO

Martin Olschewski olschewski at zpr.uni-koeln.de
Mon Aug 26 18:35:11 CEST 2002


Hallo,

libmpdemux/ai_oss.c fails to compile with solaris8/sparc (oh no, not
that guy with his sun again, can't he buy a pc ;-).  IMHO there should
be an #ifdef USE_OSS_AUDIO in ai_oss.c.  The attached patch adds this
two lines.

Have fun,

  Martin

-- 
Dipl.-Inform. Martin Olschewski 	Center for Applied Computer Science
Email: olschewski at zpr.uni-koeln.de	University of Cologne
Tel.:  ++49/221/470-6018		Weyertal 80
Fax.:  ++49/221/470-5160		D-50931 K\"oln
-------------- next part --------------
Index: libmpdemux/ai_oss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/ai_oss.c,v
retrieving revision 1.2
diff -u -r1.2 ai_oss.c
--- libmpdemux/ai_oss.c	22 Aug 2002 08:05:27 -0000	1.2
+++ libmpdemux/ai_oss.c	26 Aug 2002 16:35:29 -0000
@@ -1,4 +1,6 @@
 #include "config.h"
+
+#ifdef USE_OSS_AUDIO
 #ifdef HAVE_SYS_SOUNDCARD_H
 #include <sys/soundcard.h>
 #else
@@ -130,3 +132,5 @@
 
     return 0;
 }
+
+#endif /* USE_OSS_AUDIO */


More information about the MPlayer-dev-eng mailing list