From 1fb9311d82ff7e591aabb209eb5aaba108efc20e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 2 Dec 2012 11:20:20 -0800 Subject: Lock the device before calling aluHandleDisconnect PulseAudio causes an assert if being relocked inside a callback on the worker thread, where aluHandleDisconnect is called. We can assume it's already locked there, so just make sure the device is locked before being calling it. --- Alc/backends/sndio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Alc/backends/sndio.c') diff --git a/Alc/backends/sndio.c b/Alc/backends/sndio.c index 771a7b90..2be88746 100644 --- a/Alc/backends/sndio.c +++ b/Alc/backends/sndio.c @@ -73,7 +73,9 @@ static ALuint sndio_proc(ALvoid *ptr) if(wrote == 0) { ERR("sio_write failed\n"); + ALCdevice_Lock(device); aluHandleDisconnect(device); + ALCdevice_Unlock(device); break; } -- cgit v1.2.3