1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

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
This commit is contained in:
reimar 2007-08-27 15:21:12 +00:00
parent e6eeef436b
commit 40bb01cb45

View File

@ -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);