[vlc-devel] [PATCH]Win32 screensaver disable change part II

Laurent Aimar fenrir at elivagar.org
Tue May 3 12:26:50 CEST 2011

On Mon, May 02, 2011 at 07:43:59PM +0300, Kaarlo Räihä wrote:
> 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.
> 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. 
> It isn't perfect code wise, since I have NO clue how to create thread without
> parameters using vlc thread functions. Something like
> create_thread (function_to_run, id)
> and
> kill_thread(id)
> 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. 

There is a patch at
that seems to address the screensaver issues without using thread etc

Might be worth it to have a look at it.

I haven't applied it yet, as I do not know enough about the win32 API, and my questions
were not answered.



More information about the vlc-devel mailing list