diff options
author | wm4 <wm4@nowhere> | 2013-12-21 18:18:31 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 20:50:11 +0100 |
commit | 57359a1d62da36be3ea5f22db3c1f501dffc8156 (patch) | |
tree | 7000a5312298fa4ee54d0742b668cde5d835815b /player/lua.c | |
parent | eb15265d5a70c2c6ee8f28ff34729ea080ffb45a (diff) | |
download | mpv-57359a1d62da36be3ea5f22db3c1f501dffc8156.tar.bz2 mpv-57359a1d62da36be3ea5f22db3c1f501dffc8156.tar.xz |
lua: minor simplification
Using m_property_do() is more complicated, and will have to be changed
later for mp_msg conversions.
Diffstat (limited to 'player/lua.c')
-rw-r--r-- | player/lua.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |