From ccf42979a31a56e991b5c6d7d4043381f7487d6e Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 14 May 2006 03:48:07 +0200 Subject: [PATCH] struct audio_format_handler: use proper pointer type for the init function --- aac_afh.c | 2 +- afs.h | 2 +- mp3.c | 2 +- ogg.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aac_afh.c b/aac_afh.c index 55efeefa..a8d162e4 100644 --- a/aac_afh.c +++ b/aac_afh.c @@ -235,7 +235,7 @@ static char *aac_read_chunk(long unsigned current_chunk, ssize_t *len) 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; diff --git a/afs.h b/afs.h index 3f9c7fc6..c34f8817 100644 --- a/afs.h +++ b/afs.h @@ -69,7 +69,7 @@ struct audio_format_handler { * * Must initialize all function pointers and is assumed to succeed. */ - void (*init)(void*); + void (*init)(struct audio_format_handler*); /** * period of time between sending data chunks */ diff --git a/mp3.c b/mp3.c index bac84b6f..d8ec8bec 100644 --- a/mp3.c +++ b/mp3.c @@ -482,7 +482,7 @@ static void mp3_close_audio_file(void) } static const char* mp3_suffixes[] = {"mp3", NULL}; -void mp3_init(void *p) +void mp3_init(struct audio_format_handler *p) { af = p; af->get_file_info = mp3_get_file_info; diff --git a/ogg.c b/ogg.c index fa935d50..6bdb2306 100644 --- a/ogg.c +++ b/ogg.c @@ -346,7 +346,7 @@ static char *ogg_get_header_info(int *len) } static const char* ogg_suffixes[] = {"ogg", NULL}; -void ogg_init(void *p) +void ogg_init(struct audio_format_handler *p) { af = p; af->reposition_stream = ogg_reposition_stream; -- 2.30.2