diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2014-10-16 11:48:18 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-10-17 20:46:31 +0200 |
commit | 13039414f5fd00a6b20d2bbad9fd497c6e579d34 (patch) | |
tree | fe47451fd6bf3391a5bd33284e157ba403c4a12e /player/main.c | |
parent | c01151e0bf09bfd6db1faeaffcebd3674ac5baa2 (diff) | |
download | mpv-13039414f5fd00a6b20d2bbad9fd497c6e579d34.tar.bz2 mpv-13039414f5fd00a6b20d2bbad9fd497c6e579d34.tar.xz |
input: implement JSON-based IPC protocol
Diffstat (limited to 'player/main.c')
-rw-r--r-- | player/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c index 160b5deab3..3bed127de7 100644 --- a/player/main.c +++ b/player/main.c @@ -131,6 +131,10 @@ void mp_destroy(struct MPContext *mpctx) shutdown_clients(mpctx); +#if !defined(__MINGW32__) + mp_uninit_ipc(mpctx); +#endif + command_uninit(mpctx); osd_free(mpctx->osd); @@ -441,6 +445,10 @@ int mp_initialize(struct MPContext *mpctx) // where this is safe. mp_load_scripts(mpctx); +#if !defined(__MINGW32__) + mp_init_ipc(mpctx); +#endif + if (opts->shuffle) playlist_shuffle(mpctx->playlist); |