mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pulse: only find linked source or sink endpoints
This commit is contained in:
parent
8c43ebaf3e
commit
b518496136
1 changed files with 2 additions and 1 deletions
|
|
@ -166,8 +166,9 @@ struct global *pa_context_find_linked(pa_context *c, uint32_t idx)
|
||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (f == NULL)
|
if (f == NULL || ((f->mask & (PA_SUBSCRIPTION_MASK_SOURCE | PA_SUBSCRIPTION_MASK_SINK)) == 0))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue