summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/player/playloop.c b/player/playloop.c
index c9bc91010b..c908b1a6e2 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -685,21 +685,6 @@ int get_cache_buffering_percentage(struct MPContext *mpctx)
return mpctx->demuxer ? mpctx->cache_buffer : -1;
}
-static void handle_heartbeat_cmd(struct MPContext *mpctx)
-{
-#if !HAVE_UWP
- struct MPOpts *opts = mpctx->opts;
- if (opts->heartbeat_cmd && !mpctx->paused && mpctx->video_out) {
- double now = mp_time_sec();
- if (mpctx->next_heartbeat <= now) {
- mpctx->next_heartbeat = now + opts->heartbeat_interval;
- (void)system(opts->heartbeat_cmd);
- }
- mp_set_timeout(mpctx, mpctx->next_heartbeat - now);
- }
-#endif
-}
-
static void handle_cursor_autohide(struct MPContext *mpctx)
{
struct MPOpts *opts = mpctx->opts;
@@ -1089,7 +1074,6 @@ void run_playloop(struct MPContext *mpctx)
handle_cursor_autohide(mpctx);
handle_vo_events(mpctx);
- handle_heartbeat_cmd(mpctx);
handle_command_updates(mpctx);
if (mpctx->lavfi) {