summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-08 17:27:07 +0100
committerwm4 <wm4@nowhere>2014-12-08 17:27:07 +0100
commitb9f5daf9c334eb22d31fce4568ec5d15c59bd730 (patch)
tree398d9022c7b876e3a8368287cec3f48afd6f18a3 /player/playloop.c
parent8927d5942cf1ecb31a83cecd296b09b15a7c8c52 (diff)
downloadmpv-b9f5daf9c334eb22d31fce4568ec5d15c59bd730.tar.bz2
mpv-b9f5daf9c334eb22d31fce4568ec5d15c59bd730.tar.xz
player: make chapter seek to end jump to last frame with --keep-open
There were complaints that a chapter seek past the last chapter was quitting the player. Change the behavior to what is expected: the last frame. If no chapters are available, this still does nothing.
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 67e7f22001..6d680a0780 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -781,7 +781,7 @@ static void handle_loop_file(struct MPContext *mpctx)
}
}
-static void seek_to_last_frame(struct MPContext *mpctx)
+void seek_to_last_frame(struct MPContext *mpctx)
{
if (!mpctx->d_video)
return;