From 2c320fb609dde644bcfa3389e6a2664baa38ee2b Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 28 Oct 2014 19:51:44 +0100 Subject: 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). --- player/client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/client.c') 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); } -- cgit v1.2.3