summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-28 19:51:44 +0100
committerwm4 <wm4@nowhere>2014-10-28 20:30:12 +0100
commit2c320fb609dde644bcfa3389e6a2664baa38ee2b (patch)
tree34dd218faa868661b0edd5e86d9bad55583f33bb /options/options.c
parent0c71ae0528a6143995697fb02023c3180ee44c18 (diff)
downloadmpv-2c320fb609dde644bcfa3389e6a2664baa38ee2b.tar.bz2
mpv-2c320fb609dde644bcfa3389e6a2664baa38ee2b.tar.xz
player: add an option to abort playback on partial init failures
This is probably what libmpv users want; and it also improves error reporting (or we'd have to add a way to communicate such mid-playback failures as events).
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c2
1 files changed, 2 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})),