[vlc-commits] VLSub: Properly convert subtitle archive path to MRL

Hugo Beauzée-Luyssen git at videolan.org
Thu Apr 5 10:26:06 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Apr  3 18:32:28 2018 +0200| [a67d761528176d0b7499ef1066dcd6bf50050bbe] | committer: Hugo Beauzée-Luyssen

VLSub: Properly convert subtitle archive path to MRL

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

 share/lua/extensions/VLSub.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 4d1d292913..ba31db7dda 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -1670,7 +1670,7 @@ function get_first_sel(list)
 end
 
 function find_subtitle_in_archive(archivePath, subfileExt)
-  local archive = vlc.directory_stream("file://" .. archivePath)
+  local archive = vlc.directory_stream(vlc.strings.make_uri(archivePath))
   local items = archive:readdir()
   if not items then
     return nil



More information about the vlc-commits mailing list