summaryrefslogtreecommitdiffstats
path: root/DOCS/man
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-11 17:41:14 +0100
committerwm4 <wm4@nowhere>2014-02-11 17:41:14 +0100
commit157d470b31ed5758a16753de72ef84f136da91d2 (patch)
tree1e158d7a0d49eecafc8a9eb6d078dd21cc3a7a85 /DOCS/man
parent3c13e68a28b3587dc75288661c166b5008ac4694 (diff)
downloadmpv-157d470b31ed5758a16753de72ef84f136da91d2.tar.bz2
mpv-157d470b31ed5758a16753de72ef84f136da91d2.tar.xz
manpage: fix Lua script shutdown description again
It was split at the wrong sentence. Also, sneak in a reference to mp.suspend.
Diffstat (limited to 'DOCS/man')
-rw-r--r--DOCS/man/en/lua.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/DOCS/man/en/lua.rst b/DOCS/man/en/lua.rst
index c065a093dd..d016e3b7dc 100644
--- a/DOCS/man/en/lua.rst
+++ b/DOCS/man/en/lua.rst
@@ -21,13 +21,13 @@ the ``--lua`` option. Each script runs in its own thread. Your script is
first run "as is", and once that is done, the event loop is entered. This
event loop will dispatch events received by mpv and call your own event
handlers which you have registered with ``mp.register_event``, or timers
-added with ``mp.add_timeout`` or similar. When the player quits, all scripts
-will be asked to terminate.
+added with ``mp.add_timeout`` or similar.
-This happens via a ``shutdown`` event, which by default will make the event
-loop return. If your script got into an endless loop, mpv will probably behave
-fine during playback, but it won't terminate when quitting because it's waiting
-on your script.
+When the player quits, all scripts will be asked to terminate. This happens via
+a ``shutdown`` event, which by default will make the event loop return. If your
+script got into an endless loop, mpv will probably behave fine during playback
+(unless the player is suspended, see ``mp.suspend``), but it won't terminate
+when quitting, because it's waiting on your script.
Internally, the C code will call the Lua function ``mp_event_loop`` after
loading a Lua script. This function is normally defined by the default prelude