summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-30 11:06:55 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-30 14:46:17 +0300
commitbfcb3a7a8130be478103beb1923567f5e5d86c67 (patch)
treee8a376f6cebf586fff714f1b49b83c0e695b0cdb /mplayer.c
parent32e52b8fd0b917a40a9192770cc1a41aa31b34d0 (diff)
downloadmpv-bfcb3a7a8130be478103beb1923567f5e5d86c67.tar.bz2
mpv-bfcb3a7a8130be478103beb1923567f5e5d86c67.tar.xz
input: Move key filedescriptor list to context struct
The context variable is now passed to VOs too as it's now needed to add a callback on the X filedescriptor.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index ba8b4485da..7b64936b6a 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2141,7 +2141,7 @@ int reinit_video_chain(struct MPContext *mpctx)
//shouldn't we set dvideo->id=-2 when we fail?
//if((mpctx->video_out->preinit(vo_subdevice))!=0){
- if(!(mpctx->video_out=init_best_video_out(opts, mpctx->x11_state, mpctx->key_fifo))){
+ if(!(mpctx->video_out=init_best_video_out(opts, mpctx->x11_state, mpctx->key_fifo, mpctx->input))){
mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_ErrorInitializingVODevice);
goto err_out;
}
@@ -2873,11 +2873,11 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){
// Init input system
current_module = "init_input";
mpctx->input = mp_input_init(use_gui);
- mp_input_add_key_fd(-1,0,mplayer_get_key,NULL, mpctx->key_fifo);
+ mp_input_add_key_fd(mpctx->input, -1,0,mplayer_get_key,NULL, mpctx->key_fifo);
if(slave_mode)
mp_input_add_cmd_fd(0,USE_SELECT,MP_INPUT_SLAVE_CMD_FUNC,NULL);
else if(!noconsolecontrols)
- mp_input_add_key_fd(0, 1, read_keys, NULL, mpctx->key_fifo);
+ mp_input_add_key_fd(mpctx->input, 0, 1, read_keys, NULL, mpctx->key_fifo);
// Set the libstream interrupt callback
stream_set_interrupt_callback(mp_input_check_interrupt, mpctx->input);