From 5d2dfbdfca04d6b130af63527bb3a8a432205448 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 19 Aug 2016 09:38:38 +0200 Subject: player: refresh very low framerate video on filter changes Limit the max. time the refresh is delayed. Make it refresh at all if image mode is enabled. Fixes #3435. --- player/video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index fb4b41f718..fb8cf9cbc0 100644 --- a/player/video.c +++ b/player/video.c @@ -539,7 +539,9 @@ void mp_force_video_refresh(struct MPContext *mpctx) return; // If not paused, the next frame should come soon enough. - if (opts->pause && mpctx->video_status == STATUS_PLAYING && + if ((opts->pause || mpctx->time_frame >= 0.5) && + (mpctx->video_status >= STATUS_PLAYING || + mpctx->video_status <= STATUS_DRAINING) && mpctx->last_vo_pts != MP_NOPTS_VALUE) { queue_seek(mpctx, MPSEEK_ABSOLUTE, mpctx->last_vo_pts, -- cgit v1.2.3