[vlc-devel] [PATCH]Win32 screensaver disable change part II
kaarlo.raiha at gmail.com
Tue May 3 14:12:48 CEST 2011
2011/5/3 Laurent Aimar <fenrir at elivagar.org>
> 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
> > 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
> > cannot change SPI_GETLOWPOWERTIMEOUT settings and if VLC crashes the
> > 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
> > 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
AFAIK it still causes issues if VLC crashes. And some limited setups cannot
change those values. Plus threading way allows additional code changes,
which can be used to enable screensaver when VLC is paused (people have
> 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.
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel