aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/shout_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-25 18:34:02 +0100
committerMax Kellermann <max@duempel.org>2009-02-25 18:34:02 +0100
commitdcd84c19cdb71cfb594851995cdaffdf39453bdc (patch)
treead8dd47f69aafab71e36c5975db03a26f38a3f33 /src/output/shout_plugin.c
parent0cf4f09e4ffb4866eba5c4055fabfe1e60c780e4 (diff)
downloadmpd-dcd84c19cdb71cfb594851995cdaffdf39453bdc.tar.gz
mpd-dcd84c19cdb71cfb594851995cdaffdf39453bdc.tar.xz
mpd-dcd84c19cdb71cfb594851995cdaffdf39453bdc.zip
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.
Diffstat (limited to '')
-rw-r--r--src/output/shout_plugin.c9
1 files changed, 3 insertions, 6 deletions
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();