use audio_output_plugins_for_each's plugin iterator
This commit is contained in:
parent
8da4750ee2
commit
12b4ebf8d4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user