[vlc-devel] commit: WinCE: don't strip leading slash when converting from file:// URIs (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:05:33 2009 +0200| [c4402537c58d5200578fb45fd0978a470d1745b4] | committer: Pierre Ynard
WinCE: don't strip leading slash when converting from file:// URIs
file:// URI syntax on Windows features a leading slash before the drive
letter (file:///C:/Foobar/...). This is irrelevant on WinCE, that only
has a root directory.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c4402537c58d5200578fb45fd0978a470d1745b4
---
src/input/input.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index b9882ed..51c22b1 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2364,7 +2364,7 @@ static int InputSourceInit( input_thread_t *p_input,
*p = '\0';
/* Then URI-decode the path. */
decode_URI( psz_path );
-#ifdef WIN32
+#if defined( WIN32 ) && !defined( UNDER_CE )
/* Strip leading slash in front of the drive letter */
psz_path++;
#endif
More information about the vlc-devel
mailing list