media-kit / media-kit

A cross-platform video player & audio player for Flutter & Dart.
https://github.com/media-kit/media-kit
MIT License
893 stars 126 forks source link

Fix deadlock disposing event loop #803

Closed moffatman closed 2 weeks ago

moffatman commented 2 weeks ago

I found this deadlock when creating and disposing lots of players. I guess it can happen if dispose comes in while handling the forwarding of an event to dart.