summaryrefslogtreecommitdiffstats
path: root/input/ipc-win.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-16 14:24:31 +0200
committerwm4 <wm4@nowhere>2016-09-16 14:39:47 +0200
commit15baf2789cd5c5e0413616df22f235478f40e65e (patch)
treec0a4709012a17dfad96f7e965e53aeb15a931adb /input/ipc-win.c
parent03fec24e192ea1b5c0cf957a5a64c0db9d33e67a (diff)
downloadmpv-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-win.c')
-rw-r--r--input/ipc-win.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/input/ipc-win.c b/input/ipc-win.c
index b0010cba7d..94f5199bf1 100644
--- a/input/ipc-win.c
+++ b/input/ipc-win.c
@@ -222,7 +222,6 @@ static void *client_thread(void *p)
MP_VERBOSE(arg, "Client connected\n");
mpv_set_wakeup_callback(arg->client, wakeup_cb, wakeup_event);
- mpv_suspend(arg->client);
// Do the first read operation on the pipe
if ((ioerr = async_read(arg->client_h, buf, 4096, &ol))) {
@@ -233,11 +232,8 @@ static void *client_thread(void *p)
while (1) {
HANDLE handles[] = { wakeup_event, ol.hEvent };
int n = WaitForMultipleObjects(2, handles, FALSE, 0);
- if (n == WAIT_TIMEOUT) {
- mpv_resume(arg->client);
+ if (n == WAIT_TIMEOUT)
n = WaitForMultipleObjects(2, handles, FALSE, INFINITE);
- mpv_suspend(arg->client);
- }
switch (n) {
case WAIT_OBJECT_0: // wakeup_event