mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
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.
This commit is contained in:
parent
1c46dc32f8
commit
0237296400
2 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue