Closing PulseAudio freezes SDL audio
Submitted by Jussi Pakkanen
Assigned to pul..@..op.org
This is a slightly weird bug. When using SDL mixer (1.2) to play music on 32 bit x86 Linux boxes, things works perfectly most of the time. However every now and then things break down when closing down the SDL audio device.
The actual freeze happens inside PulseAudio. SDL's deinit calls into PA, which does a pthread_join that never returns. When this happens if there is an another SDL sound player it keeps on working perfectly. Trying to open a new SDL audio player fails. Restarting PA fixes the issue so new music players can be opened, but it does not work reliably.
Detected with PA 5 but replicated as well with PA 10.