[vlc-devel] commit: Subtitles detection: decode before testing the files. ( Jean-Baptiste Kempf )

Rafaël Carré rafael.carre at gmail.com
Sat Oct 17 23:56:11 CEST 2009


Le 17/10/2009 23:53, git version control a écrit :
> vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Oct 17 23:48:45 2009 +0200| [323f59ac8be30d79bbb1f15cb3d089163dd08aef] | committer: Jean-Baptiste Kempf 
> 
> Subtitles detection: decode before testing the files.
> 
> This calls decode_URI, as does the meta.c file. I hope this is correct, feel free to revert if not.
> closes #3076

> +    const char *psz_fname = decode_URI( psz_name_org );
>      if( !strncmp( psz_fname, "file://", 7 ) )

decode_URI() only decodes components (the part after XXX://) so it would
be decode_URI(psz_name_org+7) after appropriate checks.

The comment in src/text/strings.c at the head of decode_URI() explains
it all

-- 
Rafaël Carré

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091017/8d7b6dc1/attachment.sig>


More information about the vlc-devel mailing list