[vlc-devel] commit: Accept file:// URIs starting with an antislash (Pierre Ynard )
git version control
git at videolan.org
Tue Jun 16 13:20:11 CEST 2009
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jun 16 13:17:03 2009 +0200| [4046e4c050d68763aee1faddedb909c090efa28e] | committer: Pierre Ynard
Accept file:// URIs starting with an antislash
Yes it's invalid, but there's little point in rejecting it
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4046e4c050d68763aee1faddedb909c090efa28e
---
src/input/input.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 51c22b1..3704862 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2350,7 +2350,12 @@ static int InputSourceInit( input_thread_t *p_input,
* for non-standard VLC-specific schemes. */
if( !strcmp( psz_access, "file" ) )
{
- if( psz_path[0] != '/' )
+ if( psz_path[0] != '/'
+#if (DIR_SEP_CHAR != '/')
+ /* We accept invalid URIs too. */
+ && psz_path[0] != DIR_SEP_CHAR
+#endif
+ )
{ /* host specified -> not supported currently */
msg_Err( p_input, "cannot open remote file `%s://%s'",
psz_access, psz_path );
More information about the vlc-devel
mailing list