From 873234a1d0d44731d098003ede8e3b945623bbdc Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Wed, 24 Jun 2009 14:28:20 +0200 Subject: [PATCH] input: SetURI No longer use DIRSEP. We are dealing with URIs, not paths. --- src/input/item.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/input/item.c b/src/input/item.c index d74ec6689e..73f7d37c00 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 ); -- 2.39.2