summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-10-30 12:03:46 +0100
committerwm4 <wm4@nowhere>2016-10-30 12:03:46 +0100
commit1ff6d8ae2ec28448ec666462e282040dd0694095 (patch)
tree434732d6c16a27c761866c621ae7edaa68d89fac /player
parent1afc0c8b559d70a3764c8c791286553ad6677bc0 (diff)
downloadmpv-1ff6d8ae2ec28448ec666462e282040dd0694095.tar.bz2
mpv-1ff6d8ae2ec28448ec666462e282040dd0694095.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/sub.c4
1 files 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;