input: sleep in event loop even if there are no input fds
commitd6072d740826dd112eaeccc09c3f3bf46a8ece26
authorUoti Urpala <uau@mplayer2.org>
Fri, 22 Apr 2011 06:01:58 +0000 (22 09:01 +0300)
committerUoti Urpala <uau@mplayer2.org>
Fri, 22 Apr 2011 06:34:03 +0000 (22 09:34 +0300)
tree2e805a720f76838592a9962bb8c5e221aefb40c9
parentc2067cabafa272dc96d51a3969c024d09fb7a78d
input: sleep in event loop even if there are no input fds

The input loop select() call was only run if there was at least one
input file descriptor. However other code uses the input loop to wait;
this could result in the wait becoming a busy loop when running with
-noconsolecontrols (without that there is at least one input fd for
terminal input). Make the input loop call select() to sleep even if
there are no input file descriptors.
input/input.c