Commit 94477b84 authored by Rafaël Carré's avatar Rafaël Carré

Closes #2875 : relative paths in xspf playlists

parent 8b178f45
...@@ -547,8 +547,10 @@ static bool parse_track_node COMPLEX_INTERFACE ...@@ -547,8 +547,10 @@ static bool parse_track_node COMPLEX_INTERFACE
if( !strcmp( p_handler->name, "location" ) ) if( !strcmp( p_handler->name, "location" ) )
{ {
char *psz_location = psz_value; char *psz_location = psz_value;
if( !strncmp( psz_value, "file://", 7 ) ) if( !strncmp( psz_value, "file://", 7 ) ) /* file path */
psz_location = decode_URI( psz_value + 7 ); psz_location = decode_URI( psz_value + 7 );
else if( !strstr( psz_value, "://" ) ) /* relative path */
psz_location = decode_URI( psz_value );
if( !psz_location ) if( !psz_location )
{ {
......
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