Commit 873234a1 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

input: SetURI No longer use DIRSEP. We are dealing with URIs, not paths.

parent 89ad376f
...@@ -361,8 +361,9 @@ void input_item_SetURI( input_item_t *p_i, const char *psz_uri ) ...@@ -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 ) if( !p_i->psz_name && p_i->i_type == ITEM_TYPE_FILE )
{ {
const char *psz_filename = strrchr( p_i->psz_uri, DIR_SEP_CHAR ); const char *psz_filename = strrchr( p_i->psz_uri, '/' );
if( psz_filename && *psz_filename == DIR_SEP_CHAR )
if( psz_filename && *psz_filename == '/' )
psz_filename++; psz_filename++;
if( psz_filename && *psz_filename ) if( psz_filename && *psz_filename )
p_i->psz_name = strdup( psz_filename ); p_i->psz_name = strdup( psz_filename );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment