output_list: simplify audio_output_plugins_for_each() call

This commit is contained in:
Max Kellermann 2012-06-12 20:22:35 +02:00
parent 9604e0aad2
commit 8aa29d5a66

View File

@ -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;
}