The player in Shotcut stops responding when a bluetooth headphone disconnects due to battery dying, stepping out of range, or simply turning it off

The player in Shotcut stop responding to clicking the playback or any other button after I step out of range of the bluetooth signals or turn it off, or the battery dies and the headphone shuts off.

Any other functions of Shotcut work without issues such as the menus, timeline, filters, saving, and exporting. Filter effects don’t show up in the player but are present in the exported video.

a) Only tested in Windows 7 SP1 64bit
b) This happens in both Shotcut Windows 64bit and 32bit versions.
c) This happens on two PCs of mine with different CPUs.

d) This happens in Shotcut version 18.08.14, 18.07.02, 18.06.02, and 18.05.08 but not in 18.03.06. Availability of mono and 5.1 surround sound appears to have introduced this problem.

e) The same problem occurs when I plug in my headphone through the headphone jack and change the format such as bit depth and sampling Hz or apply an equalizer.

f) This happens with two of my bluetooth headphones. I don’t use any other bluetooth devices, so I don’t know if the problem is due to any bluetooth profile disconnect or only audio profile disconnect.
g) I also don’t have any other bluetooth receiver, so I don’t know if this problem is caused by this specific model or even this specific unit.

h) After this happens and I close Shotcut, the process tends to remain in the memory.

This should be fixed by the fix for the related issue below since the detection and recourse are quite generic (reopen SDL audio if timed out waiting to receive callback). However, I have no way to check it (no windows device with bluetooth). You can test it in v18.09.

Thanks. I’ll surely test the next version to see if it works.