summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/playloop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 25ab5ae0f9..1a0f8fbdd5 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -783,6 +783,8 @@ void seek_to_last_frame(struct MPContext *mpctx)
{
if (!mpctx->d_video)
return;
+ if (mpctx->hrseek_lastframe) // exit if we already tried this
+ return;
MP_VERBOSE(mpctx, "seeking to last frame...\n");
// Approximately seek close to the end of the file.
// Usually, it will seek some seconds before end.