From 57359a1d62da36be3ea5f22db3c1f501dffc8156 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 18:18:31 +0100 Subject: lua: minor simplification Using m_property_do() is more complicated, and will have to be changed later for mp_msg conversions. --- player/lua.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player/lua.c') diff --git a/player/lua.c b/player/lua.c index 5a3ec1db82..87b13e3c09 100644 --- a/player/lua.c +++ b/player/lua.c @@ -414,14 +414,13 @@ static int script_property_list(lua_State *L) static int script_property_string(lua_State *L) { - const struct m_option *props = mp_get_property_list(); struct MPContext *mpctx = get_mpctx(L); const char *name = luaL_checkstring(L, 1); int type = lua_tointeger(L, lua_upvalueindex(1)) ? M_PROPERTY_PRINT : M_PROPERTY_GET_STRING; char *result = NULL; - if (m_property_do(props, name, type, &result, mpctx) >= 0 && result) { + if (mp_property_do(name, type, &result, mpctx) >= 0 && result) { lua_pushstring(L, result); talloc_free(result); return 1; -- cgit v1.2.3