From d44dd30ac7c6b3928d8aef00eb4ecf755b31997a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Apr 2014 16:56:50 +0200 Subject: input: fix inverted condition pthread_equal() returns 0 if the threads are not the same, and somehow I got that wrong. The worst is that I actually explicitly checked the manpage when I wrote this code. --- input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index 2671256270..63526138e7 100644 --- a/input/input.c +++ b/input/input.c @@ -1653,7 +1653,7 @@ bool mp_input_check_interrupt(struct input_ctx *ictx) input_lock(ictx); bool res = test_abort(ictx); if (!res && ictx->mainthread_set && - pthread_equal(ictx->mainthread, pthread_self()) == 0) + pthread_equal(ictx->mainthread, pthread_self())) { read_events(ictx, 0); } -- cgit v1.2.3