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

brezhoneg1 brezhoneg1 at yahoo.fr
Thu Jun 11 00:38:27 CEST 2009


 
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

- decode_URI : the extra / at the beginning of the URI must be removed
at decoding time
- make_URI and decode_URI : In two places, / is replaced with DIR_SEP to
support both Linux and Windows.

The patch was tested with Wine on Debian successfully.

Rgds
Erwan10

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-make-sure-make_URI-and-decode_URI-work-for-Windows-p.patch
Type: application/octet-stream
Size: 1505 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090611/d54c9b2e/attachment.obj>


More information about the vlc-devel mailing list