Lock the device before calling aluHandleDisconnect
commit1fb9311d82ff7e591aabb209eb5aaba108efc20e
authorChris Robinson <chris.kcat@gmail.com>
Sun, 2 Dec 2012 19:20:20 +0000 (2 11:20 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Sun, 2 Dec 2012 19:30:23 +0000 (2 11:30 -0800)
tree5d7a6485ec0723394f18f4a60a43d7ec917e1940
parentdd34daed42adb98fe2a167f6fc9aaf98947a3cc3
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/ALc.c
Alc/ALu.c
Alc/backends/alsa.c
Alc/backends/dsound.c
Alc/backends/mmdevapi.c
Alc/backends/oss.c
Alc/backends/sndio.c
Alc/backends/solaris.c
Alc/backends/wave.c
OpenAL32/Include/alu.h