diff options
author | sfan5 <sfan5@live.de> | 2020-09-20 16:30:31 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-09-20 18:52:54 +0200 |
commit | 63ffa07b44c1747f4859530a84642350219ee76a (patch) | |
tree | eae20b2b3f7886d7ee95989bb6744af246e87419 | |
parent | c1db4630e61abd4367e07c6a6658601aa2047f66 (diff) | |
download | mpv-63ffa07b44c1747f4859530a84642350219ee76a.tar.bz2 mpv-63ffa07b44c1747f4859530a84642350219ee76a.tar.xz |
audio: take paused state into account in ao_start()
It makes no sense to instruct the AO to start the pull callbacks
when we know there's nothing to play (only affects pull AOs).
-rw-r--r-- | audio/out/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/buffer.c b/audio/out/buffer.c index f20d79ab08..9ac410ff9e 100644 --- a/audio/out/buffer.c +++ b/audio/out/buffer.c @@ -333,7 +333,7 @@ void ao_start(struct ao *ao) p->playing = true; - if (!ao->driver->write && !p->streaming) { + if (!ao->driver->write && !p->paused && !p->streaming) { p->streaming = true; do_start = true; } |