From: Rafaël Carré Date: Fri, 12 Oct 2007 16:42:50 +0000 (+0000) Subject: playlist: use a valid extension for Media Library ("xspf") X-Git-Tag: 0.9.0-test0~5067 X-Git-Url: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=285ed3d120dd3e20994604daeee24673ed746ff6 playlist: use a valid extension for Media Library ("xspf") --- diff --git a/src/playlist/loadsave.c b/src/playlist/loadsave.c index e4a327c5b7..655bea3200 100644 --- a/src/playlist/loadsave.c +++ b/src/playlist/loadsave.c @@ -119,7 +119,7 @@ int playlist_MLLoad( playlist_t *p_playlist ) return VLC_EGENERIC; } - if( asprintf( &psz_uri, "%s" DIR_SEP "ml.xsp", psz_datadir ) == -1 ) + if( asprintf( &psz_uri, "%s" DIR_SEP "ml.xspf", psz_datadir ) == -1 ) { psz_uri = NULL; goto error; @@ -133,7 +133,7 @@ int playlist_MLLoad( playlist_t *p_playlist ) } free( psz_uri ); - if( asprintf( &psz_uri, "file/xspf-open://%s" DIR_SEP "ml.xsp", + if( asprintf( &psz_uri, "file/xspf-open://%s" DIR_SEP "ml.xspf", psz_datadir ) == -1 ) { psz_uri = NULL; @@ -181,14 +181,14 @@ int playlist_MLDump( playlist_t *p_playlist ) } char psz_dirname[ strlen( psz_datadir ) - + sizeof( DIR_SEP "ml.xsl")]; + + sizeof( DIR_SEP "ml.xspf")]; sprintf( psz_dirname, "%s", psz_datadir ); if( config_CreateDir( (vlc_object_t *)p_playlist, psz_dirname ) ) { return VLC_EGENERIC; } - strcat( psz_dirname, DIR_SEP "ml.xsp" ); + strcat( psz_dirname, DIR_SEP "ml.xspf" ); stats_TimerStart( p_playlist, "ML Dump", STATS_TIMER_ML_DUMP ); playlist_Export( p_playlist, psz_dirname, p_playlist->p_ml_category,