Hello
We are trying to use LibVLC and LibsharpVLC to create an application for video-playback, but we are experiencing some crashes when we use wave-out for audio-handling. The crashes seems to happen after we pause a video, stop it, then play another video. For some reason it seems that the crash is more likely to happen if we pause the video before stopping it. We have tried different ways of stopping the video and clearing the memory-buffer, but nothing seems to help: Next time we play a video, the program can crash.
The crash only seems to happen if we use Waveout for the video. If we change to automatically, the crashes are gone. But we need Waveout because, for some reason, Waveout is the only option where we dont get some clicks that we get with the other audio-options.
In Visual Studio, in the call-stack, it seems that the crash happens in the libwaveout pluing.
We have created a public Github repository where you can test the app yourself:
https://github.com/MortenBrekkeStensland/VLC_testapp
The app uses the latest versions of libvlc, libsharp, and .net 8.
This issue seems to be related to what is reported here:
https://forum.videolan.org/viewtopic.php?f=32&t=161339
Any advice?