Mercurial > mplayer.hg
comparison mplayer.c @ 10928:f2313bd91594
add a read function for slave mode on mingw
author | faust3 |
---|---|
date | Mon, 22 Sep 2003 11:31:51 +0000 |
parents | d45870f67728 |
children | 70a974306f9b |
comparison
equal
deleted
inserted
replaced
10927:3037e30057bc | 10928:f2313bd91594 |
---|---|
11 #else | 11 #else |
12 #define SIGHUP 1 /* hangup */ | 12 #define SIGHUP 1 /* hangup */ |
13 #define SIGQUIT 3 /* quit */ | 13 #define SIGQUIT 3 /* quit */ |
14 #define SIGKILL 9 /* kill (cannot be caught or ignored) */ | 14 #define SIGKILL 9 /* kill (cannot be caught or ignored) */ |
15 #define SIGBUS 10 /* bus error */ | 15 #define SIGBUS 10 /* bus error */ |
16 extern int mp_input_win32_slave_cmd_func(int fd,char* dest,int size); | |
16 #endif | 17 #endif |
17 | 18 |
18 #include <sys/time.h> | 19 #include <sys/time.h> |
19 #include <sys/stat.h> | 20 #include <sys/stat.h> |
20 | 21 |
1119 mp_input_add_key_fd(keyb_fifo_get,1,NULL,NULL); | 1120 mp_input_add_key_fd(keyb_fifo_get,1,NULL,NULL); |
1120 #else | 1121 #else |
1121 mp_input_add_key_fd(-1,0,mplayer_get_key,NULL); | 1122 mp_input_add_key_fd(-1,0,mplayer_get_key,NULL); |
1122 #endif | 1123 #endif |
1123 if(slave_mode) | 1124 if(slave_mode) |
1125 #ifndef __MINGW32__ | |
1124 mp_input_add_cmd_fd(0,1,NULL,NULL); | 1126 mp_input_add_cmd_fd(0,1,NULL,NULL); |
1127 #else | |
1128 mp_input_add_cmd_fd(0,0,mp_input_win32_slave_cmd_func,NULL); | |
1129 #endif | |
1125 else if(!use_stdin) | 1130 else if(!use_stdin) |
1126 #ifndef HAVE_NO_POSIX_SELECT | 1131 #ifndef HAVE_NO_POSIX_SELECT |
1127 mp_input_add_key_fd(0,1,NULL,NULL); | 1132 mp_input_add_key_fd(0,1,NULL,NULL); |
1128 #else | 1133 #else |
1129 mp_input_add_key_fd(0,0,NULL,NULL); | 1134 mp_input_add_key_fd(0,0,NULL,NULL); |