mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse: uncork stream when draining
This commit is contained in:
parent
67fb792d91
commit
42e60b66f3
1 changed files with 4 additions and 0 deletions
|
|
@ -1350,6 +1350,10 @@ pa_operation* pa_stream_drain(pa_stream *s, pa_stream_success_cb_t cb, void *use
|
|||
PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->direction == PA_STREAM_PLAYBACK, PA_ERR_BADSTATE);
|
||||
|
||||
pw_log_debug("stream %p", s);
|
||||
if (s->corked) {
|
||||
s->corked = false;
|
||||
pw_stream_set_active(s->stream, true);
|
||||
}
|
||||
pw_stream_flush(s->stream, true);
|
||||
o = pa_operation_new(s->context, s, on_success, sizeof(struct success_ack));
|
||||
d = o->userdata;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue