Sinono3 / souvlaki

A cross-platform library for handling OS media controls and metadata.
MIT License
79 stars 15 forks source link

Windows hangs on `MediaControls::set_metadata()` #39

Open hinto-janai opened 9 months ago

hinto-janai commented 9 months ago

Hello, first of all - thanks for this library.

I have some code interacting with souvlaki, based off one of the examples to create a dummy window.

I'm encountering some issues on Windows 10 Pro 10.0.19045 Build 19045.

This line inside of MediaControls::set_metadata() will hang forever:

https://github.com/Sinono3/souvlaki/blob/384539fe83e8bf5c966192ba28e9405e3253619b/src/platform/windows/mod.rs#L188

Calling pump_event_queue() has not been necessary in my case on other machines for quite a while, but I added it back just in-case, however MediaControls::set_metadata() still hangs.

The file:// URL passed is a normal PATH to an image file.

This code does work on some other Windows 10/11 I have though, so I'm not sure what's going on.

Sinono3 commented 8 months ago

To be honest, I'm not familiar with the code of the dummy window since it was merged in a PR (#34). It seems pretty strange that it would only fail in that build though.