X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mp3.c;h=d8ec8bec3b592d75419c02e275d9f23ac7b8674c;hp=bc253aa5aeaa7a787550f9619d55d2c263ce25c7;hb=298ad3958d76fc775dfd0503ae4b1e43dce70f04;hpb=6acf01b71c38441686d6167617feee86a2960d62 diff --git a/mp3.c b/mp3.c index bc253aa5..d8ec8bec 100644 --- a/mp3.c +++ b/mp3.c @@ -107,7 +107,7 @@ static const char *mode_text[] = {"stereo", "joint stereo", "dual channel", "mon static struct mp3info mp3; static char mp3buf[8192]; static int chunk_size; -static struct audio_format *af; +static struct audio_format_handler *af; static int header_frequency(struct mp3header *h) { @@ -481,7 +481,8 @@ static void mp3_close_audio_file(void) mp3.file = NULL; } -void mp3_init(void *p) +static const char* mp3_suffixes[] = {"mp3", NULL}; +void mp3_init(struct audio_format_handler *p) { af = p; af->get_file_info = mp3_get_file_info; @@ -492,4 +493,5 @@ void mp3_init(void *p) /* eof_tv gets overwritten in mp3_get_file_info() */ af->eof_tv.tv_sec = 0; af->eof_tv.tv_usec = 100 * 1000; + af->suffixes = mp3_suffixes; }