diff options
author | Olivier Perret <vaeljin@gmail.com> | 2017-01-15 16:22:19 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-15 17:02:21 +0100 |
commit | 348c610b68edb578b98d08b27760f09cb7063fe2 (patch) | |
tree | 098246b56b9ca989754ba10f02c510cd580b0cb7 /DOCS | |
parent | 397705b12ca07984090a5bfc189b5dba8e5c6f39 (diff) | |
download | mpv-348c610b68edb578b98d08b27760f09cb7063fe2.tar.bz2 mpv-348c610b68edb578b98d08b27760f09cb7063fe2.tar.xz |
lua: allow unregistration of idle handlers
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/lua.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 7d91090ca8..e2f47a862a 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -451,6 +451,11 @@ are useful only in special situations. multiple properties at once, you might not want to act on each property change, but only when all change notifications have been received. +``mp.unregister_idle(fn)`` + Undo ``mp.register_idle(fn)``. This removes all idle handlers that + are equal to the ``fn`` parameter. This uses normal Lua ``==`` comparison, + so be careful when dealing with closures. + ``mp.enable_messages(level)`` Set the minimum log level of which mpv message output to receive. These messages are normally printed to the terminal. By calling this function, |