diff options
author | wm4 <wm4@nowhere> | 2016-08-19 09:38:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-19 09:38:45 +0200 |
commit | 5d2dfbdfca04d6b130af63527bb3a8a432205448 (patch) | |
tree | 3e40f56ab13b30ac79e50add4f547540cda814ca | |
parent | 4e3663a2da5da33231ced7ae513c2a9017cd4298 (diff) | |
download | mpv-5d2dfbdfca04d6b130af63527bb3a8a432205448.tar.bz2 mpv-5d2dfbdfca04d6b130af63527bb3a8a432205448.tar.xz |
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.
-rw-r--r-- | player/video.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, |