aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_stream.c')
-rw-r--r--src/input_stream.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/input_stream.c b/src/input_stream.c
index 60a1559ba..e445dca6c 100644
--- a/src/input_stream.c
+++ b/src/input_stream.c
@@ -42,13 +42,9 @@ input_stream_open(const char *url,
assert(mutex != NULL);
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, mutex, cond, &error);
if (is != NULL) {
assert(is->plugin != NULL);