From 5e0c4ec3e8f17064bf6837d33e3583afbd9214e2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 19 Dec 2013 21:28:55 +0100 Subject: player: replace some overlooked mp_msgs There are still some using IDENTIFY, and some without context in configfiles.c. --- player/lua.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'player/lua.c') 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; -- cgit v1.2.3