No one has replied
The code is there to workaround a gstreamer bug.
However directsound is deprecated and will be removed sooner or later so it's not a priority to fix it.
It will be resolved when we switch to wasapi2.
I can confirm that version: 0.8.5.158.g5256d795-Qt6-x64 is unaffected and the library scan works normally!
Thank you for your work and the quick fix!