summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index f4607330ec..6fb986a1a7 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -89,6 +89,8 @@ int enable_mouse_movements=0;
char * proc_priority=NULL;
#endif
+char *heartbeat_cmd;
+
#define ROUND(x) ((int)((x)<0 ? (x)-0.5 : (x)+0.5))
#ifdef HAVE_RTC
@@ -3442,6 +3444,14 @@ if(!mpctx->sh_video) {
xscreensaver_heartbeat();
}
#endif
+ if (heartbeat_cmd) {
+ static unsigned last_heartbeat;
+ unsigned now = GetTimerMS();
+ if (now - last_heartbeat > 30000) {
+ last_heartbeat = now;
+ system(heartbeat_cmd);
+ }
+ }
frame_time_remaining = sleep_until_update(&time_frame, &aq_sleep_time);