[vlc-commits] VLSub: Update to use simplified readdir

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 10 18:27:39 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Apr 10 17:18:05 2018 +0200| [1a11278e98898b094baff7b02c2ad4e48c7dcc8d] | committer: Hugo Beauzée-Luyssen

VLSub: Update to use simplified readdir

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

 share/lua/extensions/VLSub.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index bd97e94bbe..0306cc1d62 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -2045,8 +2045,8 @@ function list_dir(path)
 
   if dir_list_cmd then
     for _, entry in dir_list_cmd do
-      if not entry.isDir and string.match(entry.filename, "^[^%s]+.+$") then
-        table.insert(list, entry.filename)
+      if string.match(entry, "^[^%s]+.+$") then
+        table.insert(list, entry.path .. "/" .. entry.filename)
       end
     end
     return list



More information about the vlc-commits mailing list