summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
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 da8cd4035d..473e04f56e 100644
--- a/options/options.c
+++ b/options/options.c
@@ -478,6 +478,8 @@ const m_option_t mp_opts[] = {
OPT_STRING("stream-capture", stream_capture, M_OPT_FIXED | M_OPT_FILE),
OPT_STRING("stream-dump", stream_dump, M_OPT_FIXED | M_OPT_FILE),
+ OPT_FLAG("stop-playback-on-init-failure", stop_playback_on_init_failure, 0),
+
OPT_CHOICE_OR_INT("loop", loop_times, M_OPT_GLOBAL, 2, 10000,
({"no", -1}, {"1", -1},
{"inf", 0})),
diff --git a/options/options.h b/options/options.h
index cbbd0ad4ef..d9065c1877 100644
--- a/options/options.h
+++ b/options/options.h
@@ -110,6 +110,7 @@ typedef struct MPOpts {
int untimed;
char *stream_capture;
char *stream_dump;
+ int stop_playback_on_init_failure;
int loop_times;
int loop_file;
int shuffle;