pulse: only find linked source or sink endpoints

This commit is contained in:
Wim Taymans 2019-11-15 18:48:33 +01:00
parent 8c43ebaf3e
commit b518496136

View file

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