summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-04 03:26:33 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:41:04 +0300
commite5e8effca82c24cdf4e15f91cc6fe29893ac0675 (patch)
tree5f789b732fc23cab78c35b74a56155ecc5095325 /mplayer.c
parent1f086d4376897683194530f7dfc24a42c3eca908 (diff)
downloadmpv-e5e8effca82c24cdf4e15f91cc6fe29893ac0675.tar.bz2
mpv-e5e8effca82c24cdf4e15f91cc6fe29893ac0675.tar.xz
Add a context argument to mp_input_add_event_fd callback
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 1aeaa06e17..59d274b081 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2534,6 +2534,13 @@ static int seek(MPContext *mpctx, double amount, int style)
return 0;
}
+
+static void read_keys(void *ctx)
+{
+ getch2();
+}
+
+
int main(int argc,char* argv[]){
@@ -2856,7 +2863,7 @@ mp_input_init(use_gui);
if(slave_mode)
mp_input_add_cmd_fd(0,USE_SELECT,MP_INPUT_SLAVE_CMD_FUNC,NULL);
else if(!noconsolecontrols)
- mp_input_add_event_fd(0, getch2);
+ mp_input_add_event_fd(0, read_keys, NULL);
// Set the libstream interrupt callback
stream_set_interrupt_callback(mp_input_check_interrupt);