summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-18 15:04:46 +0200
committerwm4 <wm4@nowhere>2014-07-18 15:04:46 +0200
commitdc00b146c487f71ef1f0a23a4f2b9948b2fac18b (patch)
tree0292395823a0bef392c4795acc8d50ca75deedea /demux
parent34fdf082d8d7d79a24962ff2d8b43b3bef5905b2 (diff)
downloadmpv-dc00b146c487f71ef1f0a23a4f2b9948b2fac18b.tar.bz2
mpv-dc00b146c487f71ef1f0a23a4f2b9948b2fac18b.tar.xz
player: remove the last instances of polling
Mouse cursor handling, --heartbeat-cmd, and OSD messages basically relied on polling. For this reason, the playloop always used a small timeout (not more than 500ms). Fix these cases, and raise the timeout to 100 seconds. There is no reason behind this number; for this specific purpose it's as close to infinity as any other number. On MS Windows, or if vo_sdl is used, the timeout remains very small. In these cases the GUI code doesn't do proper event handling in the first place, and fixing it requires much more effort. getch2_poll() still does polling, because as far as I'm aware no event- based way to detect this state change exists.
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions