summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-25 16:47:32 +0100
committerwm4 <wm4@nowhere>2014-11-25 17:27:19 +0100
commit78f59df6edf8a94aa08d23e32e2b06a4e2e31424 (patch)
treef7ca108c45cd628a8fd15ee533326462145dd9d6
parent4590c198e620aab6ba21681831f06a3000565ac9 (diff)
downloadmpv-78f59df6edf8a94aa08d23e32e2b06a4e2e31424.tar.bz2
mpv-78f59df6edf8a94aa08d23e32e2b06a4e2e31424.tar.xz
client API: make sure youtube-dl is not used by default
Currently, --ytdl is off by default, but even if this is changed, never enable it by default for the client API. It would be inappropriate to start an intrusive external subprocess behind the host application's back.
-rw-r--r--player/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/client.c b/player/client.c
index d01c611a3d..eaead01006 100644
--- a/player/client.c
+++ b/player/client.c
@@ -410,6 +410,7 @@ mpv_handle *mpv_create(void)
mpv_set_option_string(ctx, "idle", "yes");
mpv_set_option_string(ctx, "terminal", "no");
mpv_set_option_string(ctx, "osc", "no");
+ mpv_set_option_string(ctx, "ytdl", "no");
mpv_set_option_string(ctx, "input-default-bindings", "no");
mpv_set_option_string(ctx, "input-vo-keyboard", "no");
mpv_set_option_string(ctx, "input-lirc", "no");