[vlc-devel] [PATCH 2/2] share: lua: update documentation on add_subtitle

Alexandre Janniaux ajanni at videolabs.io
Fri Sep 20 16:16:23 CEST 2019

vlc.player.add_subtitle accepts a second parameter autoselect which
default to fals.
 share/lua/README.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/README.txt b/share/lua/README.txt
index a95017638c..a944634a3f 100644
--- a/share/lua/README.txt
+++ b/share/lua/README.txt
@@ -111,7 +111,7 @@ h:redirect( url_dst, url_src ): Redirect all connections from url_src to url_dst
 player.is_playing(): Return true if input exists.
-player.add_subtitle(url): Add a subtitle file (by path) to the current input
+player.add_subtitle(url, autoselect=false): Add a subtitle file (by path) to the current input
 player.item(): Get the current input item. Input item methods are:
   :uri(): Get item's URI.
   :name(): Get item's name.

More information about the vlc-devel mailing list