mpv/osdep
Uoti Urpala 318559056f getch2.c: fix negative keycodes returned for non-ascii
getch2.c read data into a "char" array, and returned values other than
escape sequences directly from there. This meant that it could return
negative values (except on platforms where "char" is unsigned) if the
input contained bytes >= 128. This would break later parsing in
input.c as the values would be interpreted as having the MP_KEY_DOWN
flag set, which would make the key binding code think a key is held
down (and never released). Fix by changing the buffer type to unsigned
char.

The bug itself was very old, but started triggering visible breakage
more easily after commit 82b8f89bae ("input: rework event reading and
command queuing"). Before that the key values would be passed through
the input.c "key read function" interface, which (mis)interpreted the
negative values as errors from the function, and in most cases
discarded them without much visible effect.
2011-10-03 04:12:15 +03:00
..
getch2-os2.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
getch2-win.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
getch2.c getch2.c: fix negative keycodes returned for non-ascii 2011-10-03 04:12:15 +03:00
getch2.h input: make slave command file descriptors nonblocking 2011-05-04 18:53:17 +03:00
gettimeofday.c
glob-win.c osdep: tweak some #includes 2011-01-31 16:03:10 +02:00
glob.h
macosx_finder_args.c options: change option parsing to use bstr 2011-07-29 05:50:38 +03:00
macosx_finder_args.h
mmap-os2.c osdep: tweak some #includes 2011-01-31 16:03:10 +02:00
mmap.h
mmap_anon.c
mmap_anon.h
mplayer.exe.manifest
mplayer.rc osdep/mplayer.rc: change to use "mplayer2" name 2011-08-21 02:18:00 +03:00
numcores.c vd_ffmpeg: set thread count to number of cores on machine by default 2010-12-20 05:53:28 +02:00
numcores.h vd_ffmpeg: set thread count to number of cores on machine by default 2010-12-20 05:53:28 +02:00
osdep.h
priority.c build: cygwin: don't rely on _WIN32 being defined 2011-01-29 04:04:53 +02:00
priority.h
setenv.c build: fix --enable-debug, remove some "#ifdef MP_DEBUG" 2011-07-30 19:03:20 +03:00
shmem.c
shmem.h
strsep.c osdep: tweak some #includes 2011-01-31 16:03:10 +02:00
strsep.h
swab.c
timer-darwin.c osdep: tweak some #includes 2011-01-31 16:03:10 +02:00
timer-linux.c
timer-win2.c
timer.h
vsscanf.c