summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorDan Oscarsson <DanOscarsson@users.noreply.github.com>2017-03-27 11:34:02 +0200
committerwm4 <wm4@nowhere>2017-04-14 17:43:34 +0200
commitae0a40259fa9ce45d34c966da067e20a69156330 (patch)
treeff0213b28768301da56bde1b8587996489de3307 /options
parent7b84297699214a9e35eb7d4d447d29e62c26892f (diff)
downloadmpv-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')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 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,
diff --git a/options/options.h b/options/options.h
index b576dfc369..82f0c15aec 100644
--- a/options/options.h
+++ b/options/options.h
@@ -200,6 +200,7 @@ typedef struct MPOpts {
char *watch_later_directory;
int pause;
int keep_open;
+ int keep_open_pause;
double image_display_duration;
char *lavfi_complex;
int stream_id[2][STREAM_TYPE_COUNT];