diff --git a/spa/include/spa/support/plugin.h b/spa/include/spa/support/plugin.h index e491700e2..4b49306dd 100644 --- a/spa/include/spa/support/plugin.h +++ b/spa/include/spa/support/plugin.h @@ -85,9 +85,10 @@ static inline void *spa_support_find(const struct spa_support *support, const char *type) { uint32_t i; - for (i = 0; i < n_support; i++) - if (strcmp(support->type, type) == 0) - return support->data; + for (i = 0; i < n_support; i++) { + if (strcmp(support[i].type, type) == 0) + return support[i].data; + } return NULL; }