[MPlayer-dev-eng] [PATCH][GUI] Don't disable screensaver twice
pepe at attika.ath.cx
Tue Nov 7 17:13:57 CET 2006
Attila Kinali napisał(a):
> On Sat, 28 Oct 2006 22:23:02 +0200
> Piotr Kaczuba <pepe at attika.ath.cx> wrote:
>> When running the GUI saver_off() is called twice: once when the GUI is
>> displayed and then again when playback starts. This patch disables the
>> first call to saver_off() when in GUI mode. Please comment.
> Why does the GUI disable the screensaver anyways?
> Shouldn't it just leave it on until someone starts to play
> a video? (which will then handled by the x11 layer)
The GUI calls vo_init(), which is defined in x11_common.c, from
mplayer.c to check if x11 is present; then vo_init()
is called again when playback starts on a x11 based vo device (like xv,
xvmc, gl, etc.). Saver_off() is invoked from vo_init() before returning.
More information about the MPlayer-dev-eng