use audio_output_plugins_for_each's plugin iterator

This commit is contained in:
Jonathan Neuschäfer 2012-02-15 20:35:06 +01:00
parent 8da4750ee2
commit 12b4ebf8d4

View File

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