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

Christophe Mutricy xtophe at chewa.net
Mon Dec 29 18:46:47 CET 2008

> u2. INPUT creation is duplicate code in every module
> u3. Sendinput usage is duplicate code in every module
> Both u2 and u3 could be turned into functions, but I don't know where should I put them.

You could put all that code in a module like it is done to desactivate
the screen saver under Linux. See modules/misc/screensaver.c.
Depending how much code from screensaver.c is reusable, you could add
some win32 code to screensaver.c and some #ifdef WIN32  or copy it to
e.g. w32_screensaver.c and replace all the linux specific code by your


More information about the vlc-devel mailing list