0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

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

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