[vlc-devel] commit: input: SetURI No longer use DIRSEP. We are dealing with URIs, not paths. (Derk-Jan Hartman )
git version control
git at videolan.org
Wed Jun 24 15:23:50 CEST 2009
vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Wed Jun 24 14:28:20 2009 +0200| [873234a1d0d44731d098003ede8e3b945623bbdc] | committer: Derk-Jan Hartman
input: SetURI No longer use DIRSEP. We are dealing with URIs, not paths.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=873234a1d0d44731d098003ede8e3b945623bbdc
---
src/input/item.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/input/item.c b/src/input/item.c
index d74ec66..73f7d37 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -361,8 +361,9 @@ void input_item_SetURI( input_item_t *p_i, const char *psz_uri )
if( !p_i->psz_name && p_i->i_type == ITEM_TYPE_FILE )
{
- const char *psz_filename = strrchr( p_i->psz_uri, DIR_SEP_CHAR );
- if( psz_filename && *psz_filename == DIR_SEP_CHAR )
+ const char *psz_filename = strrchr( p_i->psz_uri, '/' );
+
+ if( psz_filename && *psz_filename == '/' )
psz_filename++;
if( psz_filename && *psz_filename )
p_i->psz_name = strdup( psz_filename );
More information about the vlc-devel
mailing list