diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-01-17 15:34:31 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-01-17 15:34:31 +0100 |
commit | 0237296400458fa6281db92b37161c448ab91b98 (patch) | |
tree | 4400dd3eb248e4306842708d732f567c7782e6d4 /pipewire-pulseaudio | |
parent | 1c46dc32f8d3800c615f15379135b25146e33f6e (diff) |
stream: don't set inactive on cork
We don't pause our clock ticks in the corked state which confuses
the timing code. As a workaround for now, don't set the node to
inactive when corked, this still keeps calling into the process
function and keep things moving. VLC seems to recover better.
Diffstat (limited to 'pipewire-pulseaudio')
-rw-r--r-- | pipewire-pulseaudio/src/stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pipewire-pulseaudio/src/stream.c b/pipewire-pulseaudio/src/stream.c index 70ffe02e..ace01e46 100644 --- a/pipewire-pulseaudio/src/stream.c +++ b/pipewire-pulseaudio/src/stream.c @@ -1537,8 +1537,8 @@ pa_operation* pa_stream_cork(pa_stream *s, int b, pa_stream_success_cb_t cb, voi PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->direction != PA_STREAM_UPLOAD, PA_ERR_BADSTATE); s->corked = b; - - pw_stream_set_active(s->stream, !b); + if (!b) + pw_stream_set_active(s->stream, true); o = pa_operation_new(s->context, s, on_success, sizeof(struct success_ack)); d = o->userdata; d->cb = cb; |