fix spa_support_find

This commit is contained in:
Wim Taymans 2017-12-18 13:14:18 +01:00
parent f7b6fea43d
commit 0b7c3e7407

View file

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