# HG changeset patch # User reimar # Date 1188027017 0 # Node ID 46d7af639861ecfb3ddf37e8276410da5bcf8305 # Parent a659694f00bc4c3beda37ecb69d7950dc9942293 Fix invalid fd check, the bug is somewhere else though. diff -r a659694f00bc -r 46d7af639861 input/input.c --- a/input/input.c Sat Aug 25 07:08:49 2007 +0000 +++ b/input/input.c Sat Aug 25 07:30:17 2007 +0000 @@ -600,7 +600,7 @@ mp_msg(MSGT_INPUT,MSGL_ERR,MSGTR_INPUT_INPUT_ErrCantRegister2ManyCmdFds,fd); return 0; } - if (fd < 0) { + if (select && fd < 0) { mp_msg(MSGT_INPUT, MSGL_ERR, "Invalid fd %i in mp_input_add_cmd_fd", fd); return 0; } @@ -659,7 +659,7 @@ mp_msg(MSGT_INPUT,MSGL_ERR,MSGTR_INPUT_INPUT_ErrCantRegister2ManyKeyFds,fd); return 0; } - if (fd < 0) { + if (select && fd < 0) { mp_msg(MSGT_INPUT, MSGL_ERR, "Invalid fd %i in mp_input_add_key_fd", fd); return 0; }