mirror of https://github.com/mpv-player/mpv
bb0b9f4cc8
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
|
||
---|---|---|
.. | ||
interface-changes | ||
man | ||
client-api-changes.rst | ||
compatibility.rst | ||
compile-windows.md | ||
contribute.md | ||
edl-mpv.rst | ||
encoding.rst | ||
interface-changes.rst | ||
mplayer-changes.rst | ||
release-policy.md | ||
tech-overview.txt |