diff options
author | sfan5 <sfan5@live.de> | 2024-01-12 20:33:44 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-01-12 20:36:04 +0100 |
commit | 431b420dd6a3e8dc14a3792824a25b5599bfeef2 (patch) | |
tree | 90e9f528be3d0206e9041b78e595c1cafa215003 /audio/out | |
parent | d56ad8f0329e973d4c41e93f8491b4d3ceac9793 (diff) | |
download | mpv-431b420dd6a3e8dc14a3792824a25b5599bfeef2.tar.bz2 mpv-431b420dd6a3e8dc14a3792824a25b5599bfeef2.tar.xz |
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
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_null.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |