Showing the changes to player/lua.c (1 of 2 files). Show all
Unified · Split
| @@ -613,6 +613,14 @@ static int script_commandv(lua_State *L) · 612 unmodified lines | ||
| 613 | 613 | return check_error(L, mpv_command(ctx->client, args)); |
| 614 | 614 | } |
| 615 | 615 | |
| 616 | +static int script_del_property(lua_State *L) | |
| 617 | +{ | |
| 618 | + struct script_ctx *ctx = get_ctx(L); | |
| 619 | + const char *p = luaL_checkstring(L, 1); | |
| 620 | + | |
| 621 | + return check_error(L, mpv_del_property(ctx->client, p)); | |
| 622 | +} | |
| 623 | + | |
| 616 | 624 | static int script_set_property(lua_State *L) |
| 617 | 625 | { |
| 618 | 626 | struct script_ctx *ctx = get_ctx(L); |
| @@ -1219,6 +1227,7 @@ static const struct fn_entry main_fns[] = { · 600 unmodified lines | ||
| 1219 | 1227 | FN_ENTRY(get_property_bool), |
| 1220 | 1228 | FN_ENTRY(get_property_number), |
| 1221 | 1229 | AF_ENTRY(get_property_native), |
| 1230 | + FN_ENTRY(del_property), | |
| 1222 | 1231 | FN_ENTRY(set_property), |
| 1223 | 1232 | FN_ENTRY(set_property_bool), |
| 1224 | 1233 | FN_ENTRY(set_property_number), |