Commit 970e5ba
committed
input/ipc-win: allow Windows handles for --input-ipc-client
Previously, you could only provide a CRT FD, which works great for the
most part, but when using CreateProcess on Windows, it requires the use
of the reserved fields of STARTUPINFO to inherit the FD to a child mpv
process. This becomes a problem for example if you use Go's os/exec API,
which does not expose a way to set those reserved fields. Exposing a way
to allow passing handles directly fixes the mentioned scenario, and
makes --input-ipc-client more flexible at no cost.1 parent e5486b9 commit 970e5ba
2 files changed
Lines changed: 19 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4551 | 4551 | | |
4552 | 4552 | | |
4553 | 4553 | | |
| 4554 | + | |
4554 | 4555 | | |
4555 | 4556 | | |
4556 | 4557 | | |
4557 | 4558 | | |
4558 | 4559 | | |
4559 | | - | |
4560 | | - | |
4561 | | - | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
4562 | 4564 | | |
4563 | 4565 | | |
4564 | 4566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
474 | | - | |
| 475 | + | |
| 476 | + | |
475 | 477 | | |
476 | 478 | | |
477 | | - | |
478 | | - | |
479 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
480 | 486 | | |
481 | | - | |
482 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
483 | 490 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
| 491 | + | |
489 | 492 | | |
490 | 493 | | |
491 | 494 | | |
| |||
0 commit comments