souvlaki icon indicating copy to clipboard operation
souvlaki copied to clipboard

Windows hangs on `MediaControls::set_metadata()`

Open hinto-janai opened this issue 7 months ago • 1 comments

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.

hinto-janai avatar Dec 02 '23 01:12 hinto-janai

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.

Sinono3 avatar Jan 05 '24 21:01 Sinono3