summaryrefslogtreecommitdiffstats
path: root/player/client.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 /player/client.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 'player/client.c')
-rw-r--r--player/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/client.c b/player/client.c
index 2308555a1e..8e2bc4d1b7 100644
--- a/player/client.c
+++ b/player/client.c
@@ -417,6 +417,7 @@ mpv_handle *mpv_create(void)
mpv_set_option_string(ctx, "input-appleremote", "no");
mpv_set_option_string(ctx, "input-media-keys", "no");
mpv_set_option_string(ctx, "input-app-events", "no");
+ mpv_set_option_string(ctx, "stop-playback-on-init-failure", "yes");
} else {
mp_destroy(mpctx);
}