diff options
Diffstat (limited to 'mpvcore/mp_lua.c')
-rw-r--r-- | mpvcore/mp_lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/mp_lua.c b/mpvcore/mp_lua.c index 8e3dd1d98c..e03f3e6aee 100644 --- a/mpvcore/mp_lua.c +++ b/mpvcore/mp_lua.c @@ -370,7 +370,7 @@ static int script_send_command(lua_State *L) struct MPContext *mpctx = get_mpctx(L); const char *s = luaL_checkstring(L, 1); - mp_cmd_t *cmd = mp_input_parse_cmd(bstr0((char*)s), "<lua>"); + mp_cmd_t *cmd = mp_input_parse_cmd(mpctx->input, bstr0((char*)s), "<lua>"); if (!cmd) luaL_error(L, "error parsing command"); mp_input_queue_cmd(mpctx->input, cmd); |