summaryrefslogtreecommitdiffstats
path: root/input/input.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-25 07:35:35 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-25 07:35:35 +0000
commit5488283cf62fef8fe0c859c9fd296ad5d009112b (patch)
treef77b10c97e1e0b4e5d9f86b10be3025c162629d5 /input/input.c
parentcd2a7ee82f0db92d99b5a6e3085b40d3763cd9e8 (diff)
downloadmpv-5488283cf62fef8fe0c859c9fd296ad5d009112b.tar.bz2
mpv-5488283cf62fef8fe0c859c9fd296ad5d009112b.tar.xz
Hack around broken bitfields in gcc 4.2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24158 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input/input.c')
-rw-r--r--input/input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/input/input.c b/input/input.c
index 77b111bde4..336eca90e4 100644
--- a/input/input.c
+++ b/input/input.c
@@ -609,7 +609,8 @@ mp_input_add_cmd_fd(int fd, int select, mp_cmd_func_t read_func, mp_close_func_t
cmd_fds[num_cmd_fd].fd = fd;
cmd_fds[num_cmd_fd].read_func = read_func ? read_func : mp_input_default_cmd_func;
cmd_fds[num_cmd_fd].close_func = close_func;
- cmd_fds[num_cmd_fd].no_select = !select;
+ if (!select)
+ cmd_fds[num_cmd_fd].no_select = 1;
num_cmd_fd++;
return 1;
@@ -668,7 +669,8 @@ mp_input_add_key_fd(int fd, int select, mp_key_func_t read_func, mp_close_func_t
key_fds[num_key_fd].fd = fd;
key_fds[num_key_fd].read_func = read_func;
key_fds[num_key_fd].close_func = close_func;
- key_fds[num_key_fd].no_select = !select;
+ if (!select)
+ key_fds[num_key_fd].no_select = 1;
num_key_fd++;
return 1;