diff options
author | wm4 <wm4@nowhere> | 2016-09-16 14:24:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-16 14:39:47 +0200 |
commit | 15baf2789cd5c5e0413616df22f235478f40e65e (patch) | |
tree | c0a4709012a17dfad96f7e965e53aeb15a931adb /input/ipc-unix.c | |
parent | 03fec24e192ea1b5c0cf957a5a64c0db9d33e67a (diff) | |
download | mpv-15baf2789cd5c5e0413616df22f235478f40e65e.tar.bz2 mpv-15baf2789cd5c5e0413616df22f235478f40e65e.tar.xz |
client API: declare mpv_suspend/mpv_resume deprecated
They're useless, and I have no idea what they're actually supposed to do
(wrt. pending input processing changes).
Also remove their implicit uses from the IPC handlers.
Diffstat (limited to 'input/ipc-unix.c')
-rw-r--r-- | input/ipc-unix.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/input/ipc-unix.c b/input/ipc-unix.c index f5c8886a28..b0400496ff 100644 --- a/input/ipc-unix.c +++ b/input/ipc-unix.c @@ -124,15 +124,11 @@ static void *client_thread(void *p) }; fcntl(arg->client_fd, F_SETFL, fcntl(arg->client_fd, F_GETFL, 0) | O_NONBLOCK); - mpv_suspend(arg->client); while (1) { rc = poll(fds, 2, 0); - if (rc == 0) { - mpv_resume(arg->client); + if (rc == 0) rc = poll(fds, 2, -1); - mpv_suspend(arg->client); - } if (rc < 0) { MP_ERR(arg, "Poll error\n"); continue; |