]> git.sesse.net Git - vlc/commitdiff
Closes #2875 : relative paths in xspf playlists
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 22 Jun 2009 13:44:52 +0000 (15:44 +0200)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 22 Jun 2009 13:44:52 +0000 (15:44 +0200)
modules/demux/playlist/xspf.c

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