aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_init.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-16 01:38:10 +0100
committerMax Kellermann <max@duempel.org>2009-02-16 01:38:10 +0100
commit79b50b7d9c2ef84e0b74345a31a9b2f96d2690cd (patch)
tree65e6a728b46e085ebe24e2302640df350a082cd6 /src/output_init.c
parent67da4cfe3c4c2ffc1e7fc98a6ea164b860f788cb (diff)
downloadmpd-79b50b7d9c2ef84e0b74345a31a9b2f96d2690cd.tar.gz
mpd-79b50b7d9c2ef84e0b74345a31a9b2f96d2690cd.tar.xz
mpd-79b50b7d9c2ef84e0b74345a31a9b2f96d2690cd.zip
output_plugin: added inline wrapper functions
Similar to the decoder plugin API: added wrapper functions to increase code readability.
Diffstat (limited to '')
-rw-r--r--src/output_init.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/output_init.c b/src/output_init.c
index b7b088396..1e2592e8d 100644
--- a/src/output_init.c
+++ b/src/output_init.c
@@ -69,7 +69,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param)
if (plugin->test_default_device) {
g_warning("Attempting to detect a %s audio "
"device\n", plugin->name);
- if (plugin->test_default_device()) {
+ if (ao_plugin_test_default_device(plugin)) {
g_warning("Successfully detected a %s "
"audio device\n", plugin->name);
break;
@@ -109,8 +109,9 @@ audio_output_init(struct audio_output *ao, const struct config_param *param)
notify_init(&ao->notify);
ao->command = AO_COMMAND_NONE;
- ao->data = plugin->init(ao, format ? &ao->config_audio_format : NULL,
- param);
+ ao->data = ao_plugin_init(plugin, ao,
+ format ? &ao->config_audio_format : NULL,
+ param);
if (ao->data == NULL)
return 0;