diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 13:00:59 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 14:46:21 +0300 |
commit | 423b95bf5cc46da5952a907fa565c0c7119724f0 (patch) | |
tree | 1bca5f4ac7cb5fb0d17cabcee6708d23ced2cb99 /command.c | |
parent | f7b608812ea637f89d9f9e860982940fd7101495 (diff) | |
download | mpv-423b95bf5cc46da5952a907fa565c0c7119724f0.tar.bz2 mpv-423b95bf5cc46da5952a907fa565c0c7119724f0.tar.xz |
input: Move cmd_queue to context struct
Menu instances now also need a input context pointer to queue commands.
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |