[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:22:59 CEST 2009


vlc | branch: 1.0-bugfix | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jun 16 13:05:33 2009 +0200| [13c7f68bd475f2bc516bc3a3c0cc3dba004dcf9b] | 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.
(cherry picked from commit c4402537c58d5200578fb45fd0978a470d1745b4)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=13c7f68bd475f2bc516bc3a3c0cc3dba004dcf9b
---

 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 3ddc367..57314fc 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2362,7 +2362,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