diff options
author | wm4 <wm4@nowhere> | 2014-05-18 14:08:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-18 14:08:45 +0200 |
commit | dbdf7c39e74f1eb0f0149be5c86bd977252b72e9 (patch) | |
tree | 2b330b9f29a946c1649b061b369ee4330265b01f | |
parent | dc965235364d0e914428499a89f5289a0441387e (diff) | |
download | mpv-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.
-rw-r--r-- | player/video.c | 2 |
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) |