From dcd84c19cdb71cfb594851995cdaffdf39453bdc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 25 Feb 2009 18:34:02 +0100 Subject: output_plugin: don't pass audio_output object to method init() audio_output_get_name() has been removed, which was the only function left in output_api.h. The output plugin doesn't need the audio_output object at all, remove the parameter from the init() method. --- src/output/shout_plugin.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/output/shout_plugin.c') diff --git a/src/output/shout_plugin.c b/src/output/shout_plugin.c index 425c693f7..61f8aeea4 100644 --- a/src/output/shout_plugin.c +++ b/src/output/shout_plugin.c @@ -38,8 +38,6 @@ struct shout_buffer { }; struct shout_data { - struct audio_output *audio_output; - shout_t *shout_conn; shout_metadata_t *shout_meta; @@ -97,9 +95,9 @@ static void free_shout_data(struct shout_data *sd) } \ } -static void *my_shout_init_driver(struct audio_output *audio_output, - const struct audio_format *audio_format, - const struct config_param *param) +static void * +my_shout_init_driver(const struct audio_format *audio_format, + const struct config_param *param) { struct shout_data *sd; char *test; @@ -119,7 +117,6 @@ static void *my_shout_init_driver(struct audio_output *audio_output, int public; sd = new_shout_data(); - sd->audio_output = audio_output; if (shout_init_count == 0) shout_init(); -- cgit v1.2.3