mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 13:17:13 +00:00
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). |
||
---|---|---|
.. | ||
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 |