wasapisink: Using WASAPI breaks drag and drop in music player
After starting and stopping playback in my music player, it is no longer possible to rearrange songs by drag and drop in the playlist when using WASAPI as output. I don't know if this is a Qt bug, or gstreamer bug, but the problem only occurs on Windows when using WASAPI as output so I suspect the WASAPI plugin is doing something incorrectly, possibly calling CoUninitialize too many times. Same problems occurs both with Qt 5.15.2 and Qt 6.0.0. This problem occurs with or without my patch for issue #1481 (closed). This can be seen using the builds from: https://builds.strawberrymusicplayer.org/windows/ Steps to reproduce:
- Attempt to rearrange songs in the playlist by dragging and dropping them, you can see that it works fine.
- Go to tools / settings / backend, set output to WASAPI.
- Start playback of a song.
- Stop playback.
- Attempt to rearrange songs in the playlist by dragging and dropping them, it no longer works.
- Restart the program.
- Go to tools / settings / backend, set output to direct sound.
- Repeat the same procedure, and you can see that it now works even after starting and stopping playback.