Mercurial > mplayer.hg
comparison input/input.c @ 24225:d15e78b799b5
Process any waiting commands (got_cmd set). Should fix e.g. smplayer.
author | reimar |
---|---|
date | Mon, 27 Aug 2007 15:21:12 +0000 |
parents | a911d41e4e99 |
children | 76f5d8892c04 |
comparison
equal
deleted
inserted
replaced
24224:3e2fc119e4f4 | 24225:d15e78b799b5 |
---|---|
1216 | 1216 |
1217 for (i = 0; i < num_cmd_fd; i++) { | 1217 for (i = 0; i < num_cmd_fd; i++) { |
1218 char *cmd; | 1218 char *cmd; |
1219 int r; | 1219 int r; |
1220 #ifdef HAVE_POSIX_SELECT | 1220 #ifdef HAVE_POSIX_SELECT |
1221 if (!cmd_fds[i].no_select && !FD_ISSET(cmd_fds[i].fd, &fds)) | 1221 if (!cmd_fds[i].no_select && !FD_ISSET(cmd_fds[i].fd, &fds) && |
1222 !cmd_fds[i].got_cmd) | |
1222 continue; | 1223 continue; |
1223 #endif | 1224 #endif |
1224 r = mp_input_read_cmd(&cmd_fds[i], &cmd); | 1225 r = mp_input_read_cmd(&cmd_fds[i], &cmd); |
1225 if (r >= 0) { | 1226 if (r >= 0) { |
1226 mp_cmd_t *ret = mp_input_parse_cmd(cmd); | 1227 mp_cmd_t *ret = mp_input_parse_cmd(cmd); |