From dbdf7c39e74f1eb0f0149be5c86bd977252b72e9 Mon Sep 17 00:00:00 2001
From: wm4 <wm4@nowhere>
Date: Sun, 18 May 2014 14:08:45 +0200
Subject: [PATCH] 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.
---
 player/video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)