aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/mvp_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/mvp_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 'src/output/mvp_plugin.c')
-rw-r--r--src/output/mvp_plugin.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/output/mvp_plugin.c b/src/output/mvp_plugin.c
index 5bc329785..fea7243bb 100644
--- a/src/output/mvp_plugin.c
+++ b/src/output/mvp_plugin.c
@@ -70,7 +70,6 @@ typedef struct {
#define MVP_GET_AUD_REGS _IOW('a',28,aud_ctl_regs_t*)
typedef struct _MvpData {
- struct audio_output *audio_output;
struct audio_format audio_format;
int fd;
} MvpData;
@@ -110,12 +109,11 @@ static bool mvp_testDefault(void)
return false;
}
-static void *mvp_initDriver(G_GNUC_UNUSED struct audio_output *audio_output,
- G_GNUC_UNUSED const struct audio_format *audio_format,
- G_GNUC_UNUSED const struct config_param *param)
+static void *
+mvp_initDriver(G_GNUC_UNUSED const struct audio_format *audio_format,
+ G_GNUC_UNUSED const struct config_param *param)
{
MvpData *md = g_new(MvpData, 1);
- md->audio_output = audio_output;
md->fd = -1;
return md;