summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-30 13:00:59 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-30 14:46:21 +0300
commit423b95bf5cc46da5952a907fa565c0c7119724f0 (patch)
tree1bca5f4ac7cb5fb0d17cabcee6708d23ced2cb99 /command.c
parentf7b608812ea637f89d9f9e860982940fd7101495 (diff)
downloadmpv-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.c6
1 files changed, 4 insertions, 2 deletions
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;