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
This commit is contained in:
sfan5 2024-01-12 20:33:44 +01:00
parent d56ad8f032
commit 431b420dd6
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}