[vlc-devel] [PATCH 5/6] don't add / if dir ="" (allows drive listing on windows)
Rob Jonson
rob at hobbyistsoftware.com
Wed Sep 28 14:05:17 CEST 2011
---
share/lua/intf/modules/httprequests.lua | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index bbef569..d727e16 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -353,7 +353,10 @@ getbrowsetable = function ()
if dir then
if dir == "~" then dir = vlc.misc.homedir() end
- dir = common.realpath(dir.."/")
+ if dir~="" then
+ dir = common.realpath(dir.."/")
+ end
+
local d = vlc.net.opendir(dir)
table.sort(d)
--
1.7.5
More information about the vlc-devel
mailing list