[vlc-devel] commit: Fix opening of file:// URIs (not tested on Windows) ( Rémi Denis-Courmont )

Rémi Denis-Courmont remi at remlab.net
Mon Jun 22 18:35:54 CEST 2009


Le lundi 15 juin 2009 14:16:21 Pierre Ynard, vous avez écrit :
> > Fix opening of file:// URIs (not tested on Windows)
> > (cherry picked from commit 81a05711bb6d5ff26da0cce4ed1e0cf650310184)
>
> This might break currently working set-ups.
>
> > +        if( psz_path[0] != '/' )
> > +        {   /* host specified -> not supported currently */
> > +            msg_Err( p_input, "cannot open remote file `%s://%s'",
> > +                     psz_access, psz_path );
> > +            msg_Info( p_input, "Did you mean `%s:///%s'?",
> > +                      psz_access, psz_path );
> > +            goto error;
> > +        }
>
> What is this for? What would the URI of a remote file look like?

On Windows and as specified by MS, file://host/share/directory/file refers to 
\\host\share\directory\file, whereas file:///L:/directory/file refers to L:
\directory\file.

-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list