From fb5d976cb070020e35501685c9f84b9435b248e6 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 16 Jul 2021 20:58:54 +0200 Subject: [PATCH] audio: fix ao_reset() not clearing paused state leading to stuck AO This would happen when switching from playback stuck in cache wait (underrun) to another file. --- audio/out/buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audio/out/buffer.c b/audio/out/buffer.c index 9ac410ff9e..2a169e8fd7 100644 --- a/audio/out/buffer.c +++ b/audio/out/buffer.c @@ -307,6 +307,7 @@ void ao_reset(struct ao *ao) } wakeup = p->playing; p->playing = false; + p->paused = false; p->recover_pause = false; p->hw_paused = false; p->end_time_us = 0;