Skip to content

Commit

Permalink
pulse: fix drain if timing update fails (unlikely)
Browse files Browse the repository at this point in the history
Fixes #27690
  • Loading branch information
tguillem authored and robUx4 committed Jan 6, 2023
1 parent 55d8479 commit 9abf0bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/audio_output/pulse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9abf0bb

Please sign in to comment.