summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-25 04:28:14 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-25 04:28:14 +0000
commit95a174a65a04ada12ecda4f34f139a31dfa95540 (patch)
treefbc26f310143717c7b821f7ba87d78924f32332f /mplayer.c
parent24802b1def3b48375a54e2fe9bbb1d19953286c8 (diff)
downloadmpv-95a174a65a04ada12ecda4f34f139a31dfa95540.tar.bz2
mpv-95a174a65a04ada12ecda4f34f139a31dfa95540.tar.xz
Add separate event input type for terminal+vo
Add an input/input.c fd type whose read function takes no arguments and returns no value. If such a function reads key or command events it'll add them to the queues itself. Use this type for terminal input which was special-cased before. The event function for X11-based VOs will use the same type later. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24152 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 1acbd8c4af..446a42f008 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2605,7 +2605,7 @@ if(slave_mode)
mp_input_add_cmd_fd(0,0,mp_input_win32_slave_cmd_func,NULL);
#endif
else if(!noconsolecontrols)
- mp_input_add_key_fd(0,1,NULL,NULL);
+ mp_input_add_event_fd(0, getch2);
inited_flags|=INITED_INPUT;
current_module = NULL;