client API: fix inverted condition

Oops. Sigh.
This commit is contained in:
wm4 2014-05-02 17:23:25 +02:00
parent 3b755642c8
commit 1279ebf5c5
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ static void wakeup_client(struct mpv_handle *ctx)
pthread_cond_signal(&ctx->wakeup);
if (ctx->wakeup_cb)
ctx->wakeup_cb(ctx->wakeup_cb_ctx);
if (ctx->wakeup_pipe[0] == -1)
if (ctx->wakeup_pipe[0] != -1)
write(ctx->wakeup_pipe[0], &(char){0}, 1);
}