[vlc-devel] commit: file: remove Win32 leading slash handling ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 16 10:44:04 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 16 11:29:07 2010 +0200| [063a3bc887e1f75ba181a5063c679e3c5ea7e2a6] | committer: Rémi Denis-Courmont 

file: remove Win32 leading slash handling

InputSourceInit() does it globally already

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

 modules/access/file.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/modules/access/file.c b/modules/access/file.c
index 8580953..61f4f89 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -407,15 +407,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
  *****************************************************************************/
 static int open_file (access_t *p_access, const char *path)
 {
-#if defined(WIN32)
-    if (!strcasecmp (p_access->psz_access, "file")
-      && ('/' == path[0]) && isalpha (path[1])
-      && (':' == path[2]) && ('/' == path[3]))
-        /* Explorer can open path such as file:/C:/ or file:///C:/
-         * hence remove leading / if found */
-        path++;
-#endif
-
     int fd = utf8_open (path, O_RDONLY | O_NONBLOCK);
     if (fd == -1)
     {




More information about the vlc-devel mailing list