diff options
author | wm4 <wm4@nowhere> | 2013-12-19 21:28:55 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-19 21:31:18 +0100 |
commit | 5e0c4ec3e8f17064bf6837d33e3583afbd9214e2 (patch) | |
tree | f4b4a987c0c1464255d8d9a55c69eac9965f19d9 /player/lua.c | |
parent | 7a8207a3fbb93ddd2f9954f6ff1aedad043c47f1 (diff) | |
download | mpv-5e0c4ec3e8f17064bf6837d33e3583afbd9214e2.tar.bz2 mpv-5e0c4ec3e8f17064bf6837d33e3583afbd9214e2.tar.xz |
player: replace some overlooked mp_msgs
There are still some using IDENTIFY, and some without context in
configfiles.c.
Diffstat (limited to 'player/lua.c')
-rw-r--r-- | player/lua.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/player/lua.c b/player/lua.c index f75bc96531..3687f75b87 100644 --- a/player/lua.c +++ b/player/lua.c @@ -95,9 +95,9 @@ static int mp_cpcall(lua_State *L, lua_CFunction fn, int args) static void report_error(lua_State *L) { + struct MPContext *mpctx = get_mpctx(L); const char *err = lua_tostring(L, -1); - mp_msg(MSGT_CPLAYER, MSGL_WARN, "[lua] Error: %s\n", - err ? err : "[unknown]"); + MP_WARN(mpctx, "Error: %s\n", err ? err : "[unknown]"); lua_pop(L, 1); } @@ -354,8 +354,8 @@ void mp_lua_script_dispatch(struct MPContext *mpctx, char *script_name, { struct script_ctx *ctx = find_script(mpctx->lua_ctx, script_name); if (!ctx) { - mp_msg(MSGT_CPLAYER, MSGL_V, - "Can't find script '%s' when handling input.\n", script_name); + MP_VERBOSE(mpctx, "Can't find script '%s' when handling input.\n", + script_name); return; } lua_State *L = ctx->state; |