mirror of https://github.com/mpv-player/mpv
scripting: correct passing FDs
For external scripts/processes which use IPC. The mistake didn't really matter.
This commit is contained in:
parent
60f8cd4072
commit
1c66e03ae5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue