[vlc-devel] [PATCH] -- correct broken URI for Windows (trac#2843)

xxcv xxcv07 at gmail.com
Thu Jun 11 00:57:49 CEST 2009


brezhoneg1 wrote:
>  
> This patch corrects URI handling for Windows, which has been preventing
> xspf from working on both 1.0-bugfix and master for some time.
>
> The patch does assume a Windows URI is in the form of
> /C:/path/to/file/file.ext
>   
> +#ifdef WIN32
> +    if ( strlen (psz) > 2 &&
> +        (psz[0] == '/') && isalpha (psz[1]) && (psz[2] == ':'))
> +    {
> +        in++;
> +    }
> +#endif
This should probably be in the demux playlist xspf (xml win32 problem?) 
module?
> +            case '/':
> +                *out++ = DIR_SEP_CHAR;
> +                break;
Some other url functions also use decode_uri ... so this would be 
incorrect for urls?
---
include/vlc_url.h:            decode_URI( url->psz_password );
---




More information about the vlc-devel mailing list