diff options
author | Max Kellermann <max@duempel.org> | 2012-06-12 22:21:48 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-06-12 22:21:48 +0200 |
commit | e60141b4dd726d78f3c33bb02e53d1c0f9e670a5 (patch) | |
tree | 31081beb348f8d701223158c4f5e9e37126d053a /src/input_stream.c | |
parent | 5b217420954ad1962b822faa1e2881570f803992 (diff) | |
download | mpd-e60141b4dd726d78f3c33bb02e53d1c0f9e670a5.tar.gz mpd-e60141b4dd726d78f3c33bb02e53d1c0f9e670a5.tar.xz mpd-e60141b4dd726d78f3c33bb02e53d1c0f9e670a5.zip |
input_registry: add _for_each() macros
Diffstat (limited to '')
-rw-r--r-- | src/input_stream.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/input_stream.c b/src/input_stream.c index e769adb92..311d05cfc 100644 --- a/src/input_stream.c +++ b/src/input_stream.c @@ -39,13 +39,9 @@ input_stream_open(const char *url, GError **error_r) assert(error_r == NULL || *error_r == NULL); - for (unsigned i = 0; input_plugins[i] != NULL; ++i) { - const struct input_plugin *plugin = input_plugins[i]; + input_plugins_for_each_enabled(plugin) { struct input_stream *is; - if (!input_plugins_enabled[i]) - continue; - is = plugin->open(url, &error); if (is != NULL) { assert(is->plugin != NULL); |