summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-18 14:08:45 +0200
committerwm4 <wm4@nowhere>2014-05-18 14:08:45 +0200
commitdbdf7c39e74f1eb0f0149be5c86bd977252b72e9 (patch)
tree2b330b9f29a946c1649b061b369ee4330265b01f /player/video.c
parentdc965235364d0e914428499a89f5289a0441387e (diff)
downloadmpv-dbdf7c39e74f1eb0f0149be5c86bd977252b72e9.tar.bz2
mpv-dbdf7c39e74f1eb0f0149be5c86bd977252b72e9.tar.xz
player: increase seek accuracy when refreshing display on filter change
When the player is paused, and video filters are changed, an exact seek is executed to refresh the display. Increase the exactness of the seek in this case; this reuses the code used for frame backstepping. It might help in cases where seeking is very imprecise, such as with transport streams.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c
index 128e2916ae..dad8aaaf84 100644
--- a/player/video.c
+++ b/player/video.c
@@ -272,7 +272,7 @@ void mp_force_video_refresh(struct MPContext *mpctx)
// If not paused, the next frame should come soon enough.
if (opts->pause && mpctx->last_vo_pts != MP_NOPTS_VALUE)
- queue_seek(mpctx, MPSEEK_ABSOLUTE, mpctx->last_vo_pts, 1, true);
+ queue_seek(mpctx, MPSEEK_ABSOLUTE, mpctx->last_vo_pts, 2, true);
}
static int check_framedrop(struct MPContext *mpctx, double frame_time)