[MPlayer-cvslog] r24157 - trunk/input/input.c
reimar
subversion at mplayerhq.hu
Sat Aug 25 09:30:17 CEST 2007
Author: reimar
Date: Sat Aug 25 09:30:17 2007
New Revision: 24157
Log:
Fix invalid fd check, the bug is somewhere else though.
Modified:
trunk/input/input.c
Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c (original)
+++ trunk/input/input.c Sat Aug 25 09:30:17 2007
@@ -600,7 +600,7 @@ mp_input_add_cmd_fd(int fd, int select,
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_input_add_key_fd(int fd, int select,
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;
}
More information about the MPlayer-cvslog
mailing list