In year 2008 I sent patch that changed Windows screensaver disable behavior. That patch was horrible, and after few years I tried making it better.<div><br></div><div>The issues it should solve are same (there are limited Windows accounts which cannot change SPI_GETLOWPOWERTIMEOUT settings and if VLC crashes the original settings aren't returned) but now there isn't code duplication. </div>
<div><br></div><div>It isn't perfect code wise, since I have NO clue how to create thread without parameters using vlc thread functions. Something like</div><div><br></div><div>create_thread (function_to_run, id)</div>
<div>and</div><div>kill_thread(id)</div><div><br></div><div>would be perfect for this, since I don't pass any parameters. Also I ain't sure if cancel works with vlc_thread_create, so it might work incorrectly. </div>