From 1c66e03ae5e995b567cb252a853927f0de1dbba5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 May 2020 16:16:48 +0200 Subject: [PATCH] scripting: correct passing FDs For external scripts/processes which use IPC. The mistake didn't really matter. --- player/scripting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/scripting.c b/player/scripting.c index 840ff3e64a..bb4c93b60e 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -351,7 +351,7 @@ static int load_run(struct mp_script_args *args) {.fd = 3, .src_fd = fds[0], }, {.fd = 4, .src_fd = fds[1], }, }, - .num_fds = fds[1] >= 0 ? 4 : 5, + .num_fds = fds[1] >= 0 ? 5 : 4, .detach = true, }; struct mp_subprocess_result res;