summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-12 23:48:28 +0100
committerwm4 <wm4@nowhere>2016-01-12 23:48:28 +0100
commit6fc0fe4426c1b71630d281cbc9e0406f8ad7deee (patch)
tree8d1524ec2cf01b32edd8b9fd143c46f17cbc0e9a /player/video.c
parent671df54e4dcf0675c335483d26f7f6ff9baaf76a (diff)
downloadmpv-6fc0fe4426c1b71630d281cbc9e0406f8ad7deee.tar.bz2
mpv-6fc0fe4426c1b71630d281cbc9e0406f8ad7deee.tar.xz
player: handle hrseek framedrop correctly
This was non-sense and checked the option instead of the actual flag. Possibly could lead to incorrect hr-seeks.
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 d54f048038..28c6ac4d5c 100644
--- a/player/video.c
+++ b/player/video.c
@@ -394,7 +394,7 @@ static int decode_image(struct MPContext *mpctx)
bool hrseek = mpctx->hrseek_active && mpctx->video_status == STATUS_SYNCING;
int framedrop_type = check_framedrop(mpctx);
if (hrseek && pkt && pkt->pts < mpctx->hrseek_pts - .005 &&
- !d_video->has_broken_packet_pts && mpctx->opts->hr_seek_framedrop)
+ !d_video->has_broken_packet_pts && mpctx->hrseek_framedrop)
{
framedrop_type = 2;
}