From 348c610b68edb578b98d08b27760f09cb7063fe2 Mon Sep 17 00:00:00 2001 From: Olivier Perret Date: Sun, 15 Jan 2017 16:22:19 +0100 Subject: lua: allow unregistration of idle handlers --- DOCS/man/lua.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'DOCS/man') 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, -- cgit v1.2.3