Editor freezing when parsing media with ParseNetwork
Summary
Editor freezes when trying to close (or enter play mode a second time) after calling media.Parse(MediaParseOptions.ParseNetwork). The stream will successfully play the first time but appears to not be releasing resources correctly.
Minimal project and steps to reproduce
Minimal repo: -link- simply the line "await media.Parse(MediaParseOptions.ParseNetwork);" will cause it for me
Press play: It plays.
Stop it: It stops.
Now the editor cannot be closed without task manager
Enter play mode a second time: Editor freezes completely.
Tested against parsing the bigbuckbunny.mp4 uri and any Youtube.
What is the current bug behavior?
Unexpected editor freezing when trying to parse a media item with ParseNetwork.
What is the expected correct behavior?
It shouldn't freeze.
Does it work on other plaforms? Does it work with the official VLC apps?
Relevant logs and/or screenshots
Environment
Repo using the example project config with just the media stream changed.
- OS: Windows
- Version Win10 x64 20H2
- VLC Unity plugin version 0.1.1 Trial package
- Unity 2019.4.18f1 LTS
Possible fixes
I haven't found a working method to correctly free resources.
Possibly related to LibVLCSharp#432 (closed) ?