Mpv.NET-lib-
Mpv.NET-lib- copied to clipboard
Process hangs on Dispose method
Mpv.NET (lib) Version The version of Mpv.NET (lib) you are using when encountering the problem. v1.1.1
Describe the bug I was playing around with the Mpv.Net player in a Winforms program (in the Visual Studio 2019 Community edition on Windows 10) and noticed that when I close the form, it hangs on the player.Dispose() function.
To Reproduce
- in the Visual Studio 2019 Winforms solution 'Mpv_net_test' which I will upload (see link below), start the project and close the form with the 'Dispose player on form close' checkbox not checked and verify that the form closes normally.
- Repeat step 1 but now with the 'Dispose player on form close' checkbox checked. Now the process hangs on the Dispose method. If it was a debug run the process can be stopped in the debugger and if it was a release run it has to be stopped in the Task Manager.
Sample Repository
Expected behavior Should not hang on Dispose.
Screenshots
Additional context no github but just a compressed visual studio project https://drive.google.com/file/d/1gTbS1bo0T6YxDuTsOxODfOUwHzkOpqbG/view?usp=sharing
@iamyourgranny could you please try downloading the latest 1.2.0 version and try again? May have been fixed by #28