From 1a720377203f7cee2ab949c5aa2bc9e0a2a7e0f2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 26 Mar 2020 23:58:09 +0100 Subject: scripting: remove race condition when toggling internal scripts Scripts such as the OSC can be loaded and unloaded at runtime by toggling the option that enables them. (It even works, although normally it's only used to control initial loading.) Unloading was racy because it used the client name; fix this. The load-script change is an accidental feature. And probably useless. --- DOCS/man/input.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DOCS') diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index bcc7c0100d..3e449ba81b 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1189,6 +1189,10 @@ Input Commands that are Possibly Subject to Change the script to finish initialization or not changed multiple times, and the future behavior is left undefined. + On success, returns a ``mpv_node`` with a ``client_id`` field set to the + return value of the ``mpv_client_id()`` API call of the newly created script + handle. + ``change-list `` This command changes list options as described in `List Options`_. The ```` parameter is the normal option name, while ```` is -- cgit v1.2.3