mpv/DOCS/man
Guido Cella bb0b9f4cc8 defaults.lua: add an exit() function
Scripts can terminate execution by setting mp.keep_running = false. Add
an exit() function to wrap setting mp.keep_running and properly expose
this feature. It can be used e.g. by a thumbnail script to spawn workers
with load-script and then let them quit.

It is not added to the mp namespace as mp.exit because that would make
it look like it terminates mpv.

This mirrors the exit() function which already exists in js.

The note in javascript.rst about having to remove key bindings before
exit is not kept because they are actually removed automatically since
bf385e1140 (though it was accurate when the JS backend was developed
before upstreaming it).
2024-11-02 14:03:02 +02:00
..
af.rst DOCS/man: improve explanation on how to shift notes with --pitch 2024-08-09 14:22:23 +00:00
ao.rst DOCS/man: note that default autoprobe order is unrealiable 2024-05-20 18:07:38 +02:00
changes.rst DOCS: document the new way to handle interface changes 2024-03-20 22:38:56 +00:00
console.rst console.lua: default to a proportional font for select 2024-10-28 23:30:34 +01:00
encode.rst DOCS/man: replace legacy option syntax usage 2024-05-24 17:57:43 +00:00
input.rst DOCS/man/input: note that properties can be unavailable on init 2024-11-02 01:41:11 +01:00
ipc.rst DOCS/man: add more --input-ipc-client references 2024-07-29 21:00:48 +02:00
javascript.rst defaults.lua: add an exit() function 2024-11-02 14:03:02 +02:00
libmpv.rst cplugin: allow loading mpv_* symbols dynamically 2023-09-20 02:16:45 +00:00
lua.rst defaults.lua: add an exit() function 2024-11-02 14:03:02 +02:00
mpv.rst input.conf: bind ? to show key bindings 2024-10-14 20:33:27 +02:00
options.rst options: add option to control OSD bar marker style 2024-10-26 20:02:04 +02:00
osc.rst DOCS/man/osc.rst: fix binding documentation 2024-10-29 20:36:38 +01:00
stats.rst stats.lua: calculate sizes like --osd-*-size options 2024-10-29 20:35:35 +01:00
vf.rst docs: remove stray newlines 2024-10-06 21:51:59 +02:00
vo.rst DOCS/man: note that default autoprobe order is unrealiable 2024-05-20 18:07:38 +02:00