summaryrefslogtreecommitdiffstats
path: root/osdep/getch2-win.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-14 15:44:11 +0200
committerwm4 <wm4@nowhere>2013-07-14 15:52:32 +0200
commit4b1ce17e238bcc1bb531d4572f6a3ccb3fb05bf0 (patch)
treeced89f73fc73bc7ccd163fda2b9965bcf82f9dc3 /osdep/getch2-win.c
parent38ce8250914fa79d482a6321a330733cf251dfdd (diff)
downloadmpv-4b1ce17e238bcc1bb531d4572f6a3ccb3fb05bf0.tar.bz2
mpv-4b1ce17e238bcc1bb531d4572f6a3ccb3fb05bf0.tar.xz
input: never wait if there are new events in the input queue
Move the reading loop from read_all_fd_events to read_events. If got_new_events is set when calling read_events, don't actually wait and set the timeout to 0. (Note that not waiting is sort of transparent to the caller: the caller is just supposed to execute the event loop again, and then it will actually wait. mplayer.c handles this correctly.) This might reduce latency with some input sources.
Diffstat (limited to 'osdep/getch2-win.c')
0 files changed, 0 insertions, 0 deletions