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
changes.rst
console.rst console.lua: default to a proportional font for select 2024-10-28 23:30:34 +01:00
encode.rst
input.rst DOCS/man/input: note that properties can be unavailable on init 2024-11-02 01:41:11 +01:00
ipc.rst
javascript.rst defaults.lua: add an exit() function 2024-11-02 14:03:02 +02:00
libmpv.rst
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