Mercurial > mplayer.hg
changeset 24137:46d7af639861
Fix invalid fd check, the bug is somewhere else though.
author | reimar |
---|---|
date | Sat, 25 Aug 2007 07:30:17 +0000 |
parents | a659694f00bc |
children | cba01f5dc3aa |
files | input/input.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; }