mirror of
https://github.com/mpv-player/mpv
synced 2025-02-10 00:47:38 +00:00
audio: don't wait when draining and paused
A corner case that could possibly lead to infinite waiting. Though I'm not aware that this actually happened in practice.
This commit is contained in:
parent
231c667214
commit
d07cd11b14
@ -295,7 +295,7 @@ static void *playthread(void *arg)
|
||||
p->requested_data = true;
|
||||
}
|
||||
|
||||
if (p->drain && p->avoid_ao_wait) {
|
||||
if (p->drain && (p->avoid_ao_wait || p->paused)) {
|
||||
if (ao->driver->drain)
|
||||
ao->driver->drain(ao);
|
||||
p->drain = false;
|
||||
|
Loading…
Reference in New Issue
Block a user