diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-04-22 09:01:58 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-04-22 09:34:03 +0300 |
commit | d6072d740826dd112eaeccc09c3f3bf46a8ece26 (patch) | |
tree | 2e805a720f76838592a9962bb8c5e221aefb40c9 /parser-mpcmd.h | |
parent | c2067cabafa272dc96d51a3969c024d09fb7a78d (diff) | |
download | mpv-d6072d740826dd112eaeccc09c3f3bf46a8ece26.tar.bz2 mpv-d6072d740826dd112eaeccc09c3f3bf46a8ece26.tar.xz |
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.
Diffstat (limited to 'parser-mpcmd.h')
0 files changed, 0 insertions, 0 deletions