changeset 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 3e2fc119e4f4
children 352d7d9422b5
files input/input.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Mon Aug 27 12:00:55 2007 +0000
+++ b/input/input.c	Mon Aug 27 15:21:12 2007 +0000
@@ -1218,7 +1218,8 @@
 	char *cmd;
 	int r;
 #ifdef HAVE_POSIX_SELECT
-	if (!cmd_fds[i].no_select && !FD_ISSET(cmd_fds[i].fd, &fds))
+	if (!cmd_fds[i].no_select && !FD_ISSET(cmd_fds[i].fd, &fds) &&
+	    !cmd_fds[i].got_cmd)
 	    continue;
 #endif
 	r = mp_input_read_cmd(&cmd_fds[i], &cmd);