summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2016-03-17 19:27:30 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2016-03-23 23:15:20 +1100
commit5bf473d5ca3b1a8f0902d08799b28512eb81070b (patch)
tree8cf46e3867d1998fae059b31306df5a05e474a86 /player
parentba4569cf702c72fd85e11abeb52ba06e860ed2ea (diff)
downloadmpv-5bf473d5ca3b1a8f0902d08799b28512eb81070b.tar.bz2
mpv-5bf473d5ca3b1a8f0902d08799b28512eb81070b.tar.xz
ipc: add Windows implementation with named pipes
This implements the JSON IPC protocol with named pipes, which are probably the closest Windows equivalent to Unix domain sockets in terms of functionality. Like with Unix sockets, this will allow mpv to listen for IPC connections and handle multiple IPC clients at once. A few cross platform libraries and frameworks (Qt, node.js) use named pipes for IPC on Windows and Unix sockets on Linux and Unix, so hopefully this will ease the creation of portable JSON IPC clients. Unlike the Unix implementation, this doesn't share code with --input-file, meaning --input-file on Windows won't understand JSON commands (yet.) Sharing code and removing the separate implementation in pipe-win32.c is definitely a possible future improvement.
Diffstat (limited to 'player')
-rw-r--r--player/main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/player/main.c b/player/main.c
index 70176f2d35..21c273338c 100644
--- a/player/main.c
+++ b/player/main.c
@@ -472,9 +472,7 @@ int mp_initialize(struct MPContext *mpctx, char **options)
if (opts->force_vo == 2 && handle_force_window(mpctx, false) < 0)
return -1;
-#if !defined(__MINGW32__)
mpctx->ipc_ctx = mp_init_ipc(mpctx->clients, mpctx->global);
-#endif
#ifdef _WIN32
if (opts->w32_priority > 0)