# HG changeset patch # User uau # Date 1163497969 0 # Node ID b0f2e9a16bb1d31972fa6705917002f5a85fe990 # Parent c00d8c1aa0ab622806f34f10478827517ee7ef97 Move xscreensaver_heartbeat call next to vo check_events diff -r c00d8c1aa0ab -r b0f2e9a16bb1 mplayer.c --- a/mplayer.c Tue Nov 14 09:29:03 2006 +0000 +++ b/mplayer.c Tue Nov 14 09:52:49 2006 +0000 @@ -4423,6 +4423,13 @@ current_module="vo_check_events"; if (vo_config_count) video_out->check_events(); +#ifdef HAVE_X11 + if (stop_xscreensaver) { + current_module = "stop_xscreensaver"; + xscreensaver_heartbeat(); + } +#endif + frame_time_remaining = sleep_until_update(&time_frame, &aq_sleep_time); //====================== FLIP PAGE (VIDEO BLT): ========================= @@ -5421,14 +5428,6 @@ } #endif -#ifdef HAVE_X11 -if (stop_xscreensaver && sh_video) { - current_module="stop_xscreensaver"; - xscreensaver_heartbeat(); - current_module=NULL; -} -#endif - // DVD sub: if(vo_config_count && vo_spudec) { unsigned char* packet=NULL;