mpv/DOCS
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
..
interface-changes demux_edl: disallow nested edl to avoid infinite loop 2024-11-02 01:40:41 +01:00
man defaults.lua: add an exit() function 2024-11-02 14:03:02 +02:00
client-api-changes.rst docs: remove stray newlines 2024-10-06 21:51:59 +02:00
compatibility.rst DOCS: mention restore-osc-bindings.conf 2024-10-29 20:36:38 +01:00
compile-windows.md ci/win32: use upstream meson 2024-10-21 04:11:25 +02:00
contribute.md DOCS/contribute.md: fix a typo 2024-10-29 20:25:47 +01:00
edl-mpv.rst
encoding.rst
interface-changes.rst Release 0.39.0 2024-09-23 19:36:41 +02:00
mplayer-changes.rst
release-policy.md VERSION: rename to MPV_VERSION to avoid standard library header conflict 2024-07-29 21:38:19 +02:00
tech-overview.txt DOCS/tech-overview.txt: add builtin.conf to etc/ description 2024-03-11 21:01:01 +01:00