diff options
author | wm4 <wm4@nowhere> | 2015-03-26 11:57:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-26 11:57:48 +0100 |
commit | fb61858b630dacbb071d41b1286b94cde47f581d (patch) | |
tree | 85cec522747c61703bc9fc3c8c76cf47a8e8e1e7 /player/video.c | |
parent | 8b82ebd3e6a5a477daa173dc86c2e41918bad4b1 (diff) | |
download | mpv-fb61858b630dacbb071d41b1286b94cde47f581d.tar.bz2 mpv-fb61858b630dacbb071d41b1286b94cde47f581d.tar.xz |
video: fix seek-to-last-frame
Accidentally broken in 79779616; we really need to check for true EOF,
not just whether there are no frames yet.
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/player/video.c b/player/video.c index 7e50c84513..67ee2bcbca 100644 --- a/player/video.c +++ b/player/video.c @@ -656,9 +656,7 @@ static int video_output_image(struct MPContext *mpctx, double endpts) } // Last-frame seek - if (needs_new_frame(mpctx) && hrseek && mpctx->hrseek_lastframe && - mpctx->saved_frame) - { + if (r <= 0 && hrseek && mpctx->hrseek_lastframe && mpctx->saved_frame) { add_new_frame(mpctx, mpctx->saved_frame); mpctx->saved_frame = NULL; r = VD_PROGRESS; |