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 /options/options.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 'options/options.c')
-rw-r--r-- | options/options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index c595964121..fd02fc26df 100644 --- a/options/options.c +++ b/options/options.c @@ -354,6 +354,7 @@ const m_option_t mp_opts[] = { ({"no", 0}, {"yes", 1}, {"always", 2})), + OPT_FLAG("keep-open-pause", keep_open_pause, 0), OPT_DOUBLE("image-display-duration", image_display_duration, M_OPT_RANGE, 0, INFINITY), @@ -911,6 +912,7 @@ const struct MPOpts mp_default_opts = { .play_frames = -1, .rebase_start_time = 1, .keep_open = 0, + .keep_open_pause = 1, .image_display_duration = 1.0, .stream_id = { { [STREAM_AUDIO] = -1, [STREAM_VIDEO] = -1, |