[vlc-devel] [PATCH 3/7] use make_uri on mrl inputs

Rob Jonson rob at hobbyistsoftware.com
Tue Sep 27 11:45:29 CEST 2011


---
 share/lua/intf/modules/httprequests.lua |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index f68683a..7358022 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -83,11 +83,11 @@ processcommands = function ()
 	  end
 	  vlc.msg.err( "</options>" )
 	  --]]
-	  vlc.playlist.add({{path=input,options=options}})
+	  vlc.playlist.add({{path=vlc.strings.make_uri(input),options=options}})
 	elseif command == "addsubtitle" then
-	  vlc.input.add_subtitle (val)
+	  vlc.input.add_subtitle (vlc.strings.make_uri(val))
 	elseif command == "in_enqueue" then
-	  vlc.playlist.enqueue({{path=input,options=options}})
+	  vlc.playlist.enqueue({{path=vlc.strings.make_uri(input),options=options}})
 	elseif command == "pl_play" then
 	  if id == -1 then
 		vlc.playlist.play()
-- 
1.7.5




More information about the vlc-devel mailing list