From 431b420dd6a3e8dc14a3792824a25b5599bfeef2 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 12 Jan 2024 20:33:44 +0100 Subject: [PATCH] ao_null: fix reset() implementation Stopping output implies that it can't be paused anymore. This is consistent with the documented API in internal.h as well as the behavior of other AOs. resolves #13267 --- audio/out/ao_null.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio/out/ao_null.c b/audio/out/ao_null.c index fcb61d20dd..0cda8d9604 100644 --- a/audio/out/ao_null.c +++ b/audio/out/ao_null.c @@ -116,10 +116,11 @@ static void uninit(struct ao *ao) { } -// stop playing and empty buffers (for seeking/pause) +// stop playing and empty buffers (for seeking) static void reset(struct ao *ao) { struct priv *priv = ao->priv; + priv->paused = false; priv->buffered = 0; priv->playing = false; }