mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 13:47:04 +00:00
audio/out/push: fix some AOs freezing on exit
Caused by a dumb deadlock.
This commit is contained in:
parent
ea83a2b9bc
commit
9e3e5ca598
@ -165,7 +165,7 @@ static void drain(struct ao *ao)
|
||||
if (ao->driver->drain) {
|
||||
ao->driver->drain(ao);
|
||||
} else {
|
||||
double time = get_delay(ao);
|
||||
double time = unlocked_get_delay(ao);
|
||||
mp_sleep_us(MPMIN(time, ao->buffer / (double)ao->samplerate + 1) * 1e6);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user