scripting: correct passing FDs

For external scripts/processes which use IPC. The mistake didn't really
matter.
This commit is contained in:
wm4 2020-05-15 16:16:48 +02:00
parent 60f8cd4072
commit 1c66e03ae5
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ static int load_run(struct mp_script_args *args)
{.fd = 3, .src_fd = fds[0], }, {.fd = 3, .src_fd = fds[0], },
{.fd = 4, .src_fd = fds[1], }, {.fd = 4, .src_fd = fds[1], },
}, },
.num_fds = fds[1] >= 0 ? 4 : 5, .num_fds = fds[1] >= 0 ? 5 : 4,
.detach = true, .detach = true,
}; };
struct mp_subprocess_result res; struct mp_subprocess_result res;