From ae0a40259fa9ce45d34c966da067e20a69156330 Mon Sep 17 00:00:00 2001 From: Dan Oscarsson Date: Mon, 27 Mar 2017 11:34:02 +0200 Subject: player: add --keep-open-pause=no option Instead of pausing if --keep-open is active, stop at end but continue playing if seeking backwards. And then stop again when end is reached. Signed-off-by: wm4 Over the PR, the option was renamed, and the manpage additions were slightly changed/enhanced. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index 52f3c20c11..2b33705426 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -831,7 +831,7 @@ static void handle_keep_open(struct MPContext *mpctx) seek_to_last_frame(mpctx); mpctx->playback_pts = mpctx->last_vo_pts; } - if (!mpctx->opts->pause) + if (opts->keep_open_pause && !mpctx->opts->pause) pause_player(mpctx); } } -- cgit v1.2.3