summaryrefslogtreecommitdiffstats
path: root/audio/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-27 12:20:40 +0200
committerwm4 <wm4@nowhere>2015-06-27 12:20:40 +0200
commit2a67208f4075e65c47772be9ec52371a520d85fd (patch)
tree5fe6d71b48dd988c0591d626055aa67ae95bb6a3 /audio/out
parent09695023165f7527c9bd76bba8b4e1f4e330c25a (diff)
downloadmpv-2a67208f4075e65c47772be9ec52371a520d85fd.tar.bz2
mpv-2a67208f4075e65c47772be9ec52371a520d85fd.tar.xz
terminal-unix: set terminal mode on init
mpv usually sets the terminal to non-canonical mode (which in particular disables line buffering). But the old mode is restored if the process is not foregrounded. This is supposed to make mpv behave nicer when it is backgrounded. getch2_poll() enables canonical mode. Unfortunately, this was only called after the poll timeout elapsed, so non-canonical mode is first enabled after about a second after program start. Fix this by moving the poll call before the timeout. (As far as we're aware, there's no event-based way to determine when the FD's process group changes, thus we're polling.)
Diffstat (limited to 'audio/out')
0 files changed, 0 insertions, 0 deletions