Commit 0fcdfb7a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

xspf: fix opening media library

parent 4180db97
......@@ -108,7 +108,7 @@ int libvlc_media_library_load( libvlc_media_library_t * p_mlib )
char * psz_uri;
if( psz_datadir == NULL
|| asprintf( &psz_uri, "file/xspf-open://%s" DIR_SEP "ml.xsp",
|| asprintf( &psz_uri, "file/directory://%s" DIR_SEP "ml.xsp",
psz_datadir ) == -1 )
psz_uri = NULL;
free( psz_datadir );
......
......@@ -128,7 +128,7 @@ static int ReadDir(stream_t *p_demux, input_item_node_t *p_subitems)
sys->pp_tracklist = NULL;
sys->i_tracklist_entries = 0;
sys->i_track_id = -1;
sys->psz_base = strdup(p_demux->psz_filepath);
sys->psz_base = strdup(p_demux->psz_url);
/* create new xml parser from stream */
p_xml_reader = xml_ReaderCreate(p_demux, p_demux->p_source);
......
......@@ -151,7 +151,7 @@ int playlist_MLLoad( playlist_t *p_playlist )
return VLC_EGENERIC;
}
char *psz_uri = vlc_path2uri( psz_file, "file/xspf-open" );
char *psz_uri = vlc_path2uri( psz_file, "file/directory" );
free( psz_file );
if( psz_uri == NULL )
return VLC_ENOMEM;
......
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