[vlc-commits] cue.lua: fix double URL encoding of directory name

Lorenzo Pistone git at videolan.org
Sun Sep 18 12:30:13 CEST 2011


vlc | branch: master | Lorenzo Pistone <lorenzo.pistone at studenti.unito.it> | Sun Sep 18 12:28:34 2011 +0200| [7ffe01c7df0cca88e71b9079b961d05aee9b08de] | committer: Pierre Ynard

cue.lua: fix double URL encoding of directory name

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

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

 share/lua/playlist/cue.lua |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/lua/playlist/cue.lua b/share/lua/playlist/cue.lua
index b7f5078..57215e0 100644
--- a/share/lua/playlist/cue.lua
+++ b/share/lua/playlist/cue.lua
@@ -49,7 +49,7 @@ function cue_path( src )
 		return src
 	end
 
-	local path = string.gsub( vlc.path, '\\', '/' )
+	local path = string.gsub( vlc.strings.decode_uri(vlc.path), '\\', '/' )
 	local slash = string.find( string.reverse( path ), '/' )
 	if( path == nil ) then
 		return src



More information about the vlc-commits mailing list