From 9e3e5ca59888cc844e0d8de8bdfb65c9d92084a7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 5 Oct 2014 23:05:54 +0200 Subject: [PATCH] audio/out/push: fix some AOs freezing on exit Caused by a dumb deadlock. --- audio/out/push.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/out/push.c b/audio/out/push.c index b4c1ab3950..55359cf4fe 100644 --- a/audio/out/push.c +++ b/audio/out/push.c @@ -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); }