changeset 31981:ae5a36acc995

Add the proper include instead of declaring the fakemono variable extern.
author diego
date Tue, 07 Sep 2010 23:46:14 +0000
parents 4be58d992308
children 184969a3a437
files libmpcodecs/ad_mp3lib.c libmpcodecs/ad_mpg123.c
diffstat 2 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_mp3lib.c	Tue Sep 07 23:41:23 2010 +0000
+++ b/libmpcodecs/ad_mp3lib.c	Tue Sep 07 23:46:14 2010 +0000
@@ -23,6 +23,7 @@
 #include "config.h"
 
 #include "ad_internal.h"
+#include "dec_audio.h"
 #include "ad_mp3lib.h"
 
 static const ad_info_t info =
@@ -38,8 +39,6 @@
 
 #include "mp3lib/mp3.h"
 
-extern int fakemono;
-
 static sh_audio_t* dec_audio_sh=NULL;
 
 // MP3 decoder buffer callback:
--- a/libmpcodecs/ad_mpg123.c	Tue Sep 07 23:41:23 2010 +0000
+++ b/libmpcodecs/ad_mpg123.c	Tue Sep 07 23:46:14 2010 +0000
@@ -25,6 +25,7 @@
 #include "config.h"
 
 #include "ad_internal.h"
+#include "dec_audio.h"
 
 static const ad_info_t info = {
     "MPEG 1.0/2.0/2.5 layers I, II, III",
@@ -72,10 +73,6 @@
 /* Switch for updating bitrate info of VBR files. Not essential. */
 #define AD_MPG123_MEAN_BITRATE
 
-/* Funny thing, that. I assume I shall use it for selecting mpg123 channels.
- * Please correct me if I guessed wrong. */
-extern int fakemono;
-
 struct ad_mpg123_context {
     mpg123_handle *handle;
 #ifdef AD_MPG123_MEAN_BITRATE