[vlc-commits] share: lua: update documentation on add_subtitle

Alexandre Janniaux git at videolan.org
Mon Sep 23 13:39:34 CEST 2019


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Sep 20 16:16:23 2019 +0200| [8d402218afe3c760415b1ef7774e4a9a8cba65a8] | committer: Thomas Guillem

share: lua: update documentation on add_subtitle

vlc.player.add_subtitle accepts a second parameter autoselect which
default to fals.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d402218afe3c760415b1ef7774e4a9a8cba65a8
---

 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
 ------
 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-commits mailing list