]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aac_afh.c
struct audio_format_handler: use proper pointer type for the init function
[paraslash.git] / aac_afh.c
index d6f37fcb59887403cbaf85454d703844032ee823..a8d162e4b7de7a895969c53ada0fb67a9c08367e 100644 (file)
--- a/aac_afh.c
+++ b/aac_afh.c
@@ -233,8 +233,9 @@ static char *aac_read_chunk(long unsigned current_chunk, ssize_t *len)
        return (char *)inbuf;
 }
 
+static const char* aac_suffixes[] = {"m4a", NULL};
 /** the init function of the aac audio format handler */
-void aac_afh_init(void *p)
+void aac_afh_init(struct audio_format_handler *p)
 {
        af = p;
        af->reposition_stream = aac_reposition_stream;
@@ -245,4 +246,5 @@ void aac_afh_init(void *p)
        af->chunk_tv.tv_sec = 0;
        af->chunk_tv.tv_usec = 23120;
        tv_scale(3, &af->chunk_tv, &af->eof_tv);
+       af->suffixes = aac_suffixes;
 }