pulse: uncork stream when draining

This commit is contained in:
Wim Taymans 2020-10-23 16:34:52 +02:00
parent 67fb792d91
commit 42e60b66f3

View file

@ -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); PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->direction == PA_STREAM_PLAYBACK, PA_ERR_BADSTATE);
pw_log_debug("stream %p", s); 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); pw_stream_flush(s->stream, true);
o = pa_operation_new(s->context, s, on_success, sizeof(struct success_ack)); o = pa_operation_new(s->context, s, on_success, sizeof(struct success_ack));
d = o->userdata; d = o->userdata;