mirror of https://github.com/mpv-player/mpv
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:
parent
d56ad8f032
commit
431b420dd6
|
@ -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)
|
static void reset(struct ao *ao)
|
||||||
{
|
{
|
||||||
struct priv *priv = ao->priv;
|
struct priv *priv = ao->priv;
|
||||||
|
priv->paused = false;
|
||||||
priv->buffered = 0;
|
priv->buffered = 0;
|
||||||
priv->playing = false;
|
priv->playing = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue