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

Rémi Denis-Courmont remi at remlab.net
Tue Sep 27 17:05:43 CEST 2011


Le mardi 27 septembre 2011 12:45:29 Rob Jonson, vous avez écrit :
> ---
>  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()

Why is 'val' not an URI to begin with?


-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list