input: don't interrupt processing at unbound events
commit3e86228fad309b54869bf2a3314756933ba74e43
authorUoti Urpala <uau@mplayer2.org>
Sun, 24 Apr 2011 19:20:03 +0000 (24 22:20 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sun, 1 May 2011 11:44:05 +0000 (1 14:44 +0300)
tree568fb7657bec4285fbee106e257964f88c876e53
parent40234b1a3c21cd0ef1087bd5b5e9601dd56c4fce
input: don't interrupt processing at unbound events

The input code read at most one event per input or command fd. If this
event was not bound to any recognized command then no command was
returned, and higher-level code could not distinguish this case from
there being no pending events left. As a result unbound events would
cause extra latency in event processing. Change the input code to
continue reading events until it either finds one that maps to a
command or hits EOF/error.
input/input.c