From 63ffa07b44c1747f4859530a84642350219ee76a Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 20 Sep 2020 16:30:31 +0200 Subject: 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). --- audio/out/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3