[vlc-devel] [PATCH 30/41] Return drive-letter path even though it is not started with '\' on OS/2.
KO Myung-Hun
komh at chollian.net
Mon Oct 10 13:44:09 CEST 2011
This fixes the problem dvd://x:, vcd://x: and so on are not processed
correctly.
---
src/text/strings.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/text/strings.c b/src/text/strings.c
index 93ae149..ecf6815 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -1231,6 +1231,11 @@ char *make_path (const char *url)
/* Local path disguised as a remote one */
if (!strncasecmp (path, "localhost\\", 10))
return memmove (path, path + 10, strlen (path + 10) + 1);
+#ifdef __OS2__
+ /* Drive letter ? */
+ if (isalpha (*path) && *(path + 1) == ':' && *(path + 2) == '\0')
+ return path;
+#endif
/* UNC path */
if (*path && asprintf (&ret, "\\\\%s", path) == -1)
ret = NULL;
--
1.7.3.2
More information about the vlc-devel
mailing list