Commit 70940f34 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Flush PulseAudio stream on overflow (fix #5464)

(cherry picked from commit 836d970806b986949b9b2f847d16cf73f8bdadca)

Conflicts:

	modules/audio_output/pulse.c
parent c809cde7
...@@ -313,9 +313,13 @@ static void stream_moved_cb(pa_stream *s, void *userdata) ...@@ -313,9 +313,13 @@ static void stream_moved_cb(pa_stream *s, void *userdata)
static void stream_overflow_cb(pa_stream *s, void *userdata) static void stream_overflow_cb(pa_stream *s, void *userdata)
{ {
aout_instance_t *aout = userdata; aout_instance_t *aout = userdata;
pa_operation *op;
msg_Err(aout, "overflow"); msg_Err(aout, "overflow, flushing");
(void) s; op = pa_stream_flush(s, NULL, NULL);
if (likely(op != NULL))
pa_operation_unref(op);
stream_reset_sync(s, aout);
} }
static void stream_started_cb(pa_stream *s, void *userdata) static void stream_started_cb(pa_stream *s, void *userdata)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment