]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mp3_afh.c
kill global variable af from all audio format handlers
[paraslash.git] / mp3_afh.c
index 898547fce4870ebb94beb10ee950dee4b05ea11e..51b95c9952dd9735fbff785a341959409d8e307a 100644 (file)
--- a/mp3_afh.c
+++ b/mp3_afh.c
@@ -104,7 +104,6 @@ static const char *mode_text[] = {"stereo", "joint stereo", "dual channel", "mon
 
 static FILE *infile;
 static struct mp3info mp3;
-static struct audio_format_handler *af;
 static ssize_t num_chunks;
 
 static int header_frequency(struct mp3header *h)
@@ -476,10 +475,9 @@ static const char* mp3_suffixes[] = {"mp3", NULL};
  *
  * \param p pointer to the struct to initialize
  */
-void mp3_init(struct audio_format_handler *p)
+void mp3_init(struct audio_format_handler *afh)
 {
-       af = p;
-       af->get_file_info = mp3_get_file_info;
-       af->close_audio_file = mp3_close_audio_file;
-       af->suffixes = mp3_suffixes;
+       afh->get_file_info = mp3_get_file_info;
+       afh->close_audio_file = mp3_close_audio_file;
+       afh->suffixes = mp3_suffixes;
 }