audio/out/push: fix some AOs freezing on exit

Caused by a dumb deadlock.
This commit is contained in:
wm4 2014-10-05 23:05:54 +02:00
parent ea83a2b9bc
commit 9e3e5ca598
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}