From 0d90dd07ff5269bf3492004d31ec0f4bd0b6d113 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 27 Sep 2013 15:30:59 +0200 Subject: input: more mp_msg conversion It appears the last run missed all mp_tmsg(). Since the command parser also prints messages, it needs a new parameter to pass a log context. We go the easy way and just require the input_ctx to be passed, and use its mp_log. --- mpvcore/mp_lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpvcore/mp_lua.c') 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), ""); + mp_cmd_t *cmd = mp_input_parse_cmd(mpctx->input, bstr0((char*)s), ""); if (!cmd) luaL_error(L, "error parsing command"); mp_input_queue_cmd(mpctx->input, cmd); -- cgit v1.2.3