From 40bb01cb45067796e0207e6b2ce4ea2ce0f07b76 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 27 Aug 2007 15:21:12 +0000 Subject: Process any waiting commands (got_cmd set). Should fix e.g. smplayer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24245 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index 59c9ae56e9..21ef7b99a8 100644 --- a/input/input.c +++ b/input/input.c @@ -1218,7 +1218,8 @@ static mp_cmd_t *read_events(int time, int paused) 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); -- cgit v1.2.3