diff options
author | rcombs <rcombs@rcombs.me> | 2022-12-16 15:22:33 -0600 |
---|---|---|
committer | rcombs <rcombs@rcombs.me> | 2023-01-28 14:20:20 -0600 |
commit | 51c6784df7e3972858e95aefdadad4a423fe76ab (patch) | |
tree | fb36b7ee0b4f97df9c27dc470e66c83afc4fbfe5 /DOCS | |
parent | 2cfaa820e54b12de437bb4da97d894ad610abcdd (diff) | |
download | mpv-51c6784df7e3972858e95aefdadad4a423fe76ab.tar.bz2 mpv-51c6784df7e3972858e95aefdadad4a423fe76ab.tar.xz |
lua: add mp.del_property()
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/lua.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 546cf93a1d..ae9c14f55f 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -199,6 +199,12 @@ The ``mp`` module is preloaded, although it can be loaded manually with Whether this works and how long it takes depends on the command and the situation. The abort call itself is asynchronous. Does not return anything. +``mp.del_property(name [,def])`` + Delete the given property. See ``mp.get_property`` and `Properties`_ for more + information about properties. Most properties cannot be deleted. + + Returns true on success, or ``nil, error`` on error. + ``mp.get_property(name [,def])`` Return the value of the given property as string. These are the same properties as used in input.conf. See `Properties`_ for a list of |