Commit cf9d6376 authored by Rafaël Carré's avatar Rafaël Carré

xspf export: write the extension tag before the trackList, we'll need to read...

xspf export: write the extension tag before the trackList, we'll need to read it first to handle it properly.
parent 19774520
......@@ -73,16 +73,6 @@ int E_(xspf_export_playlist)( vlc_object_t *p_this )
free( psz_temp );
}
/* export all items in a flat format */
fprintf( p_export->p_file, "\t<trackList>\n" );
i_count = 0;
for( i = 0; i < p_node->i_children; i++ )
{
xspf_export_item( p_node->pp_children[i], p_export->p_file,
&i_count );
}
fprintf( p_export->p_file, "\t</trackList>\n" );
/* export the tree structure in <extension> */
fprintf( p_export->p_file, "\t<extension application=\"http://www.videolan.org/vlc/playlist/0\">\n" );
i_count = 0;
......@@ -93,6 +83,16 @@ int E_(xspf_export_playlist)( vlc_object_t *p_this )
}
fprintf( p_export->p_file, "\t</extension>\n" );
/* export all items in a flat format */
fprintf( p_export->p_file, "\t<trackList>\n" );
i_count = 0;
for( i = 0; i < p_node->i_children; i++ )
{
xspf_export_item( p_node->pp_children[i], p_export->p_file,
&i_count );
}
fprintf( p_export->p_file, "\t</trackList>\n" );
/* close the header elements */
fprintf( p_export->p_file, "</playlist>\n" );
......
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