[vlc-devel] commit: Accept file:// URIs starting with an antislash (Pierre Ynard )
git version control
git at videolan.org
Tue Jun 16 13:22:59 CEST 2009
vlc | branch: 1.0-bugfix | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jun 16 13:17:03 2009 +0200| [9240002af136cc5ed9f46d9742e9616dfc90a5a9] | committer: Pierre Ynard
Accept file:// URIs starting with an antislash
Yes it's invalid, but there's little point in rejecting it
(cherry picked from commit 4046e4c050d68763aee1faddedb909c090efa28e)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9240002af136cc5ed9f46d9742e9616dfc90a5a9
---
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 57314fc..e6f60e2 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2348,7 +2348,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