summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-04-28 12:18:57 +0200
committerWim Taymans <wtaymans@redhat.com>2020-04-28 12:18:57 +0200
commit9c1ac4e8507fec0f5dd8caba6c9c94aa795f5e5a (patch)
treef4874045605883f0a4c521ed54db90576385ced1
parent69bc57864a4bb6884dd3992617d9cae0e6901127 (diff)
pulse: implement cork now
-rw-r--r--pipewire-pulseaudio/src/stream.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pipewire-pulseaudio/src/stream.c b/pipewire-pulseaudio/src/stream.c
index 3acdfc28..8c3799f1 100644
--- a/pipewire-pulseaudio/src/stream.c
+++ b/pipewire-pulseaudio/src/stream.c
@@ -1603,8 +1603,7 @@ pa_operation* pa_stream_cork(pa_stream *s, int b, pa_stream_success_cb_t cb, voi
pw_log_debug("stream %p: cork %d->%d", s, s->corked, b);
s->corked = b;
- if (!b)
- pw_stream_set_active(s->stream, true);
+ pw_stream_set_active(s->stream, !b);
o = pa_operation_new(s->context, s, on_success, sizeof(struct success_ack));
d = o->userdata;
d->cb = cb;