mirror of https://github.com/mpv-player/mpv
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:
parent
c1db4630e6
commit
63ffa07b44
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue