aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-06-12 20:22:35 +0200
committerMax Kellermann <max@duempel.org>2012-06-12 20:22:40 +0200
commit8aa29d5a66e127b4b14ef439d77250051ccddea0 (patch)
treebe0454ef2314ad89f5406e0c5183ffd945f37974 /src
parent9604e0aad2abf1e564766f039cb21da9849d1ac4 (diff)
downloadmpd-8aa29d5a66e127b4b14ef439d77250051ccddea0.tar.gz
mpd-8aa29d5a66e127b4b14ef439d77250051ccddea0.tar.xz
mpd-8aa29d5a66e127b4b14ef439d77250051ccddea0.zip
output_list: simplify audio_output_plugins_for_each() call
Diffstat (limited to 'src')
-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 8238f581b..bc5e7d749 100644
--- a/src/output_list.c
+++ b/src/output_list.c
@@ -99,8 +99,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;
}