mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
pulsecore: Use PA_IDXSET_FOREACH wherever applicable.
Signed-off-by: Harsh Prateek Bora <harsh.bora@linaro.org>
This commit is contained in:
parent
f38c1e9bf9
commit
13c7a55599
5 changed files with 16 additions and 16 deletions
|
|
@ -263,14 +263,14 @@ int pa_card_suspend(pa_card *c, pa_bool_t suspend, pa_suspend_cause_t cause) {
|
|||
pa_assert(c);
|
||||
pa_assert(cause != 0);
|
||||
|
||||
for (sink = pa_idxset_first(c->sinks, &idx); sink; sink = pa_idxset_next(c->sinks, &idx)) {
|
||||
PA_IDXSET_FOREACH(sink, c->sinks, idx) {
|
||||
int r;
|
||||
|
||||
if ((r = pa_sink_suspend(sink, suspend, cause)) < 0)
|
||||
ret = r;
|
||||
}
|
||||
|
||||
for (source = pa_idxset_first(c->sources, &idx); source; source = pa_idxset_next(c->sources, &idx)) {
|
||||
PA_IDXSET_FOREACH(source, c->sources, idx) {
|
||||
int r;
|
||||
|
||||
if ((r = pa_source_suspend(source, suspend, cause)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue