mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
fix spa_support_find
This commit is contained in:
parent
f7b6fea43d
commit
0b7c3e7407
1 changed files with 4 additions and 3 deletions
|
|
@ -85,9 +85,10 @@ static inline void *spa_support_find(const struct spa_support *support,
|
||||||
const char *type)
|
const char *type)
|
||||||
{
|
{
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
for (i = 0; i < n_support; i++)
|
for (i = 0; i < n_support; i++) {
|
||||||
if (strcmp(support->type, type) == 0)
|
if (strcmp(support[i].type, type) == 0)
|
||||||
return support->data;
|
return support[i].data;
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue