From 423b95bf5cc46da5952a907fa565c0c7119724f0 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 30 Apr 2008 13:00:59 +0300 Subject: input: Move cmd_queue to context struct Menu instances now also need a input context pointer to queue commands. --- command.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index 70b924cac2..90df10ac4b 100644 --- a/command.c +++ b/command.c @@ -2864,7 +2864,8 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd) if (mpctx->set_of_sub_pos >= 0) { mpctx->global_sub_pos = -2; subdata = NULL; - mp_input_queue_cmd(mp_input_parse_cmd("sub_select")); + mp_input_queue_cmd(mpctx->input, + mp_input_parse_cmd("sub_select")); } } else if (v < mpctx->set_of_sub_size) { subd = mpctx->set_of_subtitles[v]; @@ -2875,7 +2876,8 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd) if (mpctx->set_of_sub_pos == v) { mpctx->global_sub_pos = -2; subdata = NULL; - mp_input_queue_cmd(mp_input_parse_cmd("sub_select")); + mp_input_queue_cmd(mpctx->input, + mp_input_parse_cmd("sub_select")); } else if (mpctx->set_of_sub_pos > v) { --mpctx->set_of_sub_pos; --mpctx->global_sub_pos; -- cgit v1.2.3