mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
modules: Use PA_IDXSET_FOREACH wherever applicable.
Signed-off-by: Harsh Prateek Bora <harsh.bora@linaro.org>
This commit is contained in:
parent
0236977408
commit
f38c1e9bf9
6 changed files with 9 additions and 9 deletions
|
|
@ -67,7 +67,7 @@ static void load_null_sink_if_needed(pa_core *c, pa_sink *sink, struct userdata*
|
|||
|
||||
/* Loop through all sinks and check to see if we have *any*
|
||||
* sinks. Ignore the sink passed in (if it's not null) */
|
||||
for (target = pa_idxset_first(c->sinks, &idx); target; target = pa_idxset_next(c->sinks, &idx))
|
||||
PA_IDXSET_FOREACH(target, c->sinks, idx)
|
||||
if (!sink || target != sink)
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue