hudec117 / Mpv.NET-lib-

.NET embeddable video/media player based on mpv for WinForms and WPF
MIT License
138 stars 36 forks source link

Process hangs on Dispose method #26

Open iamyourgranny opened 3 years ago

iamyourgranny commented 3 years ago

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

  1. 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.
  2. 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

hudec117 commented 3 years ago

@iamyourgranny could you please try downloading the latest 1.2.0 version and try again? May have been fixed by #28