From 9abf0bb2b650ace0d53f0de9feb3ac1fd9146d1c Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Mon, 2 Jan 2023 17:34:46 +0100 Subject: [PATCH] pulse: fix drain if timing update fails (unlikely) Fixes #27690 --- modules/audio_output/pulse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c index f74be0c0b250..6c124b5dd47c 100644 --- a/modules/audio_output/pulse.c +++ b/modules/audio_output/pulse.c @@ -671,7 +671,11 @@ static void Drain(audio_output_t *aout) if (op != NULL) pa_operation_unref(op); else - aout_DrainedReport(aout); + { + /* Timing failed, update the drain timer using the last known + * latency */ + TriggerDrain(aout); + } } pa_threaded_mainloop_unlock(sys->mainloop);