diff options
author | Dan Oscarsson <DanOscarsson@users.noreply.github.com> | 2017-03-27 11:34:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-14 17:43:34 +0200 |
commit | ae0a40259fa9ce45d34c966da067e20a69156330 (patch) | |
tree | ff0213b28768301da56bde1b8587996489de3307 /player/playloop.c | |
parent | 7b84297699214a9e35eb7d4d447d29e62c26892f (diff) | |
download | mpv-ae0a40259fa9ce45d34c966da067e20a69156330.tar.bz2 mpv-ae0a40259fa9ce45d34c966da067e20a69156330.tar.xz |
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 <wm4@nowhere>
Over the PR, the option was renamed, and the manpage additions were
slightly changed/enhanced.
Diffstat (limited to 'player/playloop.c')
-rw-r--r-- | player/playloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |