aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_list.c
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-02-15 20:35:06 +0100
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-02-15 20:37:29 +0100
commit12b4ebf8d465631617f5c941627b893f77e6da57 (patch)
treecb5e3e15a49262f0aa214fa234b9e50b40698d30 /src/output_list.c
parent8da4750ee2e66647cf774b246e609fe3b8950a11 (diff)
downloadmpd-12b4ebf8d465631617f5c941627b893f77e6da57.tar.gz
mpd-12b4ebf8d465631617f5c941627b893f77e6da57.tar.xz
mpd-12b4ebf8d465631617f5c941627b893f77e6da57.zip
use audio_output_plugins_for_each's plugin iterator
Diffstat (limited to 'src/output_list.c')
-rw-r--r--src/output_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output_list.c b/src/output_list.c
index 6bb9b2f8b..e269086cf 100644
--- a/src/output_list.c
+++ b/src/output_list.c
@@ -106,8 +106,8 @@ audio_output_plugin_get(const char *name)
const struct audio_output_plugin *plugin;
audio_output_plugins_for_each(plugin, i)
- if (strcmp(audio_output_plugins[i]->name, name) == 0)
- return audio_output_plugins[i];
+ if (strcmp(plugin->name, name) == 0)
+ return plugin;
return NULL;
}