[vlc-devel] [PATCH] cli: fixup URLs passed via command-line

Rémi Denis-Courmont remi at remlab.net
Mon Oct 12 15:21:13 CEST 2020


It was already pointed out multiple times by multiple people that this doesn't work in the previous thread.

-1

Le 12 octobre 2020 15:53:11 GMT+03:00, Romain Vimont <rom1v at videolabs.io> a écrit :
>This allow VLC to open invalid URLs (using a space instead of %20
>for example).
>---
> src/libvlc.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/src/libvlc.c b/src/libvlc.c
>index c1dcde276d..ad5f300eff 100644
>--- a/src/libvlc.c
>+++ b/src/libvlc.c
>@@ -442,8 +442,10 @@ static void GetFilenames( libvlc_int_t *p_vlc,
>unsigned n,
>             if( !mrl )
>                 continue;
>         }
>+        else
>+            mrl = vlc_uri_fixup(args[n]);
> 
>-        intf_InsertItem( p_vlc, (mrl != NULL) ? mrl : args[n],
>i_options,
>+        intf_InsertItem( p_vlc, mrl, i_options,
>                          ( i_options ? &args[n + 1] : NULL ),
>                          VLC_INPUT_OPTION_TRUSTED );
>         free( mrl );
>-- 
>2.28.0
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20201012/43b57f81/attachment.html>


More information about the vlc-devel mailing list