From 1ff6d8ae2ec28448ec666462e282040dd0694095 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 30 Oct 2016 12:03:46 +0100 Subject: player: don't try updating subtitles while playback PTS doesn't progress This code would just keep it busy while e.g. being paused. Even if it's not paused, it couldn't help with anything since we obviously still lock display to the externally updated PTS. --- player/sub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player/sub.c b/player/sub.c index 04af1e1e15..6abb4e3326 100644 --- a/player/sub.c +++ b/player/sub.c @@ -120,9 +120,9 @@ static bool update_subtitle(struct MPContext *mpctx, double video_pts, osd_set_force_video_pts(mpctx->osd, video_pts); osd_query_and_reset_want_redraw(mpctx->osd); vo_redraw(mpctx->video_out); + // Force an arbitrary minimum FPS + mp_set_timeout(mpctx, 0.1); } - // Force an arbitrary minimum FPS - mp_set_timeout(mpctx, 0.1); } return true; -- cgit v1.2.3