]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
kill file parameter from get_file_info of struct audio format handler
authorAndre Noll <maan@systemlinux.org>
Tue, 13 Mar 2007 22:20:10 +0000 (23:20 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 13 Mar 2007 22:20:10 +0000 (23:20 +0100)
Now that all audio format handlers use mmap(), this parameter is unused.

aac_afh.c
afh.h
mp3_afh.c
ogg_afh.c
vss.c

index 17b7225020417e732fa5bf4ea2c0a966b2c73fe0..bf402f091968254a0c120eec5f762f1180aaf2c0 100644 (file)
--- a/aac_afh.c
+++ b/aac_afh.c
@@ -97,7 +97,7 @@ static long unsigned aac_set_chunk_tv(struct audio_format_info *afi,
 /*
  * Init m4a file and write some tech data to given pointers.
  */
-static int aac_get_file_info(__a_unused FILE *file, char *map, off_t numbytes,
+static int aac_get_file_info(char *map, off_t numbytes,
                struct audio_format_info *afi)
 {
        int i;
diff --git a/afh.h b/afh.h
index 7925aee32de83cb33c7ce586649edadd9b89605a..246cb9200fefc8a601a333ad7f3e82b490beb346 100644 (file)
--- a/afh.h
+++ b/afh.h
@@ -108,7 +108,7 @@ struct audio_format_handler {
         *
         * \sa struct audio_format_info
        */
-       int (*get_file_info)(FILE *audio_file, char *map, off_t numbytes,
+       int (*get_file_info)(char *map, off_t numbytes,
                struct audio_format_info *afi);
 };
 
index a3e3c5c330466e672aa80ab58a7a462443bdef7f..8f36bb83310aed62b33f0ac92796a2f82b091708 100644 (file)
--- a/mp3_afh.c
+++ b/mp3_afh.c
@@ -404,7 +404,7 @@ err_out:
 /*
  * Read mp3 information from audio file
  */
-static int mp3_get_file_info(FILE *file, char *map, off_t numbytes,
+static int mp3_get_file_info(char *map, off_t numbytes,
                struct audio_format_info *afi)
 {
        int ret;
index 7a3286fdf471f816b43c16c72603058f04fe7ade..eaed16210678d7c9ba6082f733b54264db7e325f 100644 (file)
--- a/ogg_afh.c
+++ b/ogg_afh.c
@@ -247,7 +247,7 @@ static long unsigned ogg_compute_chunk_table(OggVorbis_File *of,
 /*
  * Init oggvorbis file and write some tech data to given pointers.
  */
-static int ogg_get_file_info(FILE *file, char *map, off_t numbytes,
+static int ogg_get_file_info(char *map, off_t numbytes,
                struct audio_format_info *afi)
 {
        int ret;
diff --git a/vss.c b/vss.c
index 74b0f009c381f46cfa40af9c081f72e4847b2d2d..93790a7324afa8064df9fc20cd243e59840e7495 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -185,7 +185,7 @@ void vss_init(void)
 
 static int get_file_info(int i)
 {
-       return  afl[i].get_file_info(audio_file, map, mmd->size, &mmd->afi);
+       return  afl[i].get_file_info(map, mmd->size, &mmd->afi);
 }
 
 /**