pulse: only find links to source or sink

Those are the only links we care about in the sink_input or
source_output info.
This commit is contained in:
Wim Taymans 2020-05-03 18:49:10 +02:00
parent 6d5563a978
commit ed2d6b2cce

View file

@ -174,7 +174,8 @@ 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_SINK | PA_SUBSCRIPTION_MASK_SOURCE)))
continue; continue;
return f; return f;
} }