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).
This commit is contained in:
sfan5 2020-09-20 16:30:31 +02:00
parent c1db4630e6
commit 63ffa07b44
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ void ao_start(struct ao *ao)
p->playing = true; p->playing = true;
if (!ao->driver->write && !p->streaming) { if (!ao->driver->write && !p->paused && !p->streaming) {
p->streaming = true; p->streaming = true;
do_start = true; do_start = true;
} }