Commit 836d9708 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Flush PulseAudio stream on overflow (fix #5464)

parent a67d93c4
......@@ -414,9 +414,13 @@ static void stream_moved_cb(pa_stream *s, void *userdata)
static void stream_overflow_cb(pa_stream *s, void *userdata)
{
audio_output_t *aout = userdata;
pa_operation *op;
msg_Err(aout, "overflow");
(void) s;
msg_Err(aout, "overflow, flushing");
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)
......
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