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

Kaarlo Räihä kaarlo.raiha at gmail.com
Mon May 2 18:43:59 CEST 2011


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110502/5dca8014/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Change-Windows-screensaver-monster.patch
Type: application/octet-stream
Size: 5057 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110502/5dca8014/attachment.obj>


More information about the vlc-devel mailing list