From 72808be6f857ae7d66d5adb87568acf3f9159ade Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 16 Jun 2015 23:11:14 +0200 Subject: command: do not exit playback if the B point of A-B loop is past EOF The previous behavior is confusing if the B point is near EOF (consider B being the duration of the file, which is strictly speaking past the last video timestamp). The new behavior is fine as well for B being far past EOF. Achieve this by checking the EOF state in addition to whether playback has reached the B point. Also, move the A-B loop code out of command_event(). It just isn't useful anymore, and obfuscates the code more than it makes it loop simple. Fixes #2046. --- player/command.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/command.h') diff --git a/player/command.h b/player/command.h index c87cbeba7f..85e81966c6 100644 --- a/player/command.h +++ b/player/command.h @@ -54,4 +54,6 @@ enum { bool mp_hook_test_completion(struct MPContext *mpctx, char *type); void mp_hook_run(struct MPContext *mpctx, char *client, char *type); +void handle_ab_loop(struct MPContext *mpctx); + #endif /* MPLAYER_COMMAND_H */ -- cgit v1.2.3