summaryrefslogtreecommitdiffstats
path: root/mpvcore/mp_lua.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-27 15:30:59 +0200
committerwm4 <wm4@nowhere>2013-09-27 15:30:59 +0200
commit0d90dd07ff5269bf3492004d31ec0f4bd0b6d113 (patch)
tree595186d936f47e391f50ae8b0ab8e03a483a277e /mpvcore/mp_lua.c
parent9f149717a625d03033380fd5f6904b328ea51f5b (diff)
downloadmpv-0d90dd07ff5269bf3492004d31ec0f4bd0b6d113.tar.bz2
mpv-0d90dd07ff5269bf3492004d31ec0f4bd0b6d113.tar.xz
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.
Diffstat (limited to 'mpvcore/mp_lua.c')
-rw-r--r--mpvcore/mp_lua.c2
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);