diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-15 00:12:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-08-15 00:12:53 +0200 |
commit | e4db56bf0763abaaa34796f5b0234b3cd2cf4d3c (patch) | |
tree | b87a2e05078093c6b1df381ddc780d05c0728158 /src/pulsecore/sink.c | |
parent | e53d2fc6b57f90d937f2680fa56461d4042de87a (diff) |
core: split of FAIL_ON_SUSPEND into KILL_ON_SUSPEND and NO_CREATE_ON_SUSPEND
Diffstat (limited to 'src/pulsecore/sink.c')
-rw-r--r-- | src/pulsecore/sink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 65c6374b..90c9d85d 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -398,9 +398,9 @@ static int sink_set_state(pa_sink *s, pa_sink_state_t state) { /* We're suspending or resuming, tell everyone about it */ - for (i = PA_SINK_INPUT(pa_idxset_first(s->inputs, &idx)); i; i = PA_SINK_INPUT(pa_idxset_next(s->inputs, &idx))) + PA_IDXSET_FOREACH(i, s->inputs, idx) if (s->state == PA_SINK_SUSPENDED && - (i->flags & PA_SINK_INPUT_FAIL_ON_SUSPEND)) + (i->flags & PA_SINK_INPUT_KILL_ON_SUSPEND)) pa_sink_input_kill(i); else if (i->suspend) i->suspend(i, state == PA_SINK_SUSPENDED); |