changeset 30552:8d2b4cef28d3

Add header file for mplayer_audio_read() instead of forward declaring it.
author diego
date Tue, 16 Feb 2010 13:16:17 +0000
parents 36818ea5ce95
children b2829d4f2de4
files libmpcodecs/ad_mp3lib.c libmpcodecs/ad_mp3lib.h mp3lib/sr1.c
diffstat 3 files changed, 26 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_mp3lib.c	Tue Feb 16 13:10:24 2010 +0000
+++ b/libmpcodecs/ad_mp3lib.c	Tue Feb 16 13:16:17 2010 +0000
@@ -23,6 +23,7 @@
 #include "config.h"
 
 #include "ad_internal.h"
+#include "ad_mp3lib.h"
 
 static const ad_info_t info =
 {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libmpcodecs/ad_mp3lib.h	Tue Feb 16 13:16:17 2010 +0000
@@ -0,0 +1,24 @@
+/*
+ * This file is part of MPlayer.
+ *
+ * MPlayer is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * MPlayer is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef MPLAYER_AD_MP3LIB_H
+#define MPLAYER_AD_MP3LIB_H
+
+int mplayer_audio_read(char *buf, int size);
+
+#endif /* MPLAYER_AD_MP3LIB_H */
--- a/mp3lib/sr1.c	Tue Feb 16 13:10:24 2010 +0000
+++ b/mp3lib/sr1.c	Tue Feb 16 13:16:17 2010 +0000
@@ -20,7 +20,7 @@
 #include "cpudetect.h"
 //#include "liba52/mm_accel.h"
 #include "mp_msg.h"
-
+#include "libmpcodecs/ad_mp3lib.h"
 #include "libvo/fastmemcpy.h"
 
 #include "libavutil/common.h"
@@ -55,8 +55,6 @@
 #include "tabinit.c"
 
 #if 1
-int mplayer_audio_read(char *buf,int size);
-
 LOCAL int mp3_read(char *buf,int size){
 //  int len=fread(buf,1,size,mp3_file);
   int len=mplayer_audio_read(buf,size);