From fe67aa7b1878ca3cf3bf81dcafa1bbe3efaf51c8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 18 Mar 2016 22:03:04 +0100 Subject: lua: don't suspend core by default during script execution This changes behavior somewhat. The old behavior can be restored by running "mp.use_suspend=true". It was originally introduced for the OSC, but I can't reproduce whatever misbehavior I was seeing. (See mp.suspend()/resume() for explanations what the suspend mechanism does.) --- DOCS/man/lua.rst | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'DOCS/man') diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 4d47774319..245eb58a5d 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -412,7 +412,7 @@ are useful only in special situations. from displaying the next video frame, so that you don't get blocked when trying to access the player. - This is automatically called by the event handler. + Before mpv 0.17.0, this was automatically called by the event handler. ``mp.resume()`` Undo one ``mp.suspend()`` call. ``mp.suspend()`` increments an internal @@ -423,10 +423,6 @@ are useful only in special situations. This resets the internal suspend counter and resumes the player. (It's like calling ``mp.resume()`` until the player is actually resumed.) - You might want to call this if you're about to do something that takes a - long time, but doesn't really need access to the player (like a network - operation). Note that you still can access the player at any time. - ``mp.get_wakeup_pipe()`` Calls ``mpv_get_wakeup_pipe()`` and returns the read end of the wakeup pipe. (See ``client.h`` for details.) @@ -449,8 +445,6 @@ are useful only in special situations. ``mp.get_wakeup_pipe()`` if you're interested in properly working notification of new events and working timers. - This function calls ``mp.suspend()`` and ``mp.resume_all()`` on its own. - ``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