[vlc-devel] commit: file: Be consistent with the rest of the world. Do not expand tilde . ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Mar 4 21:32:14 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Tue Mar 4 22:29:27 2008 +0200| [c2f5a92b2b73bdc23c5d588af49c0f5a8b754b7c]
file: Be consistent with the rest of the world. Do not expand tilde.
The shell already does it, and \~ should not be expanded by VLC.
Also fixes consistency with the other file-opening plugins
(directory, mmap, cdda...).
Signed-off-by: Rémi Denis-Courmont <rem at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c2f5a92b2b73bdc23c5d588af49c0f5a8b754b7c
---
modules/access/file.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/modules/access/file.c b/modules/access/file.c
index b73ed3c..a1c0384 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -380,16 +380,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
static char *expand_path (const access_t *p_access, const char *path)
{
- if (strncmp (path, "~/", 2) == 0)
- {
- char *res;
-
- // TODO: we should also support the ~cmassiot/ syntax
- if (asprintf (&res, "%s/%s", p_access->p_libvlc->psz_homedir, path + 2) == -1)
- return NULL;
- return res;
- }
-
#if defined(WIN32)
if (!strcasecmp (p_access->psz_access, "file")
&& ('/' == path[0]) && path[1] && (':' == path[2]) && ('/' == path[3]))
More information about the vlc-devel
mailing list