mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
Hack around broken bitfields in gcc 4.2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24158 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cd2a7ee82f
commit
5488283cf6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user