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,25 +73,25 @@ int E_(xspf_export_playlist)( vlc_object_t *p_this ) ...@@ -73,25 +73,25 @@ int E_(xspf_export_playlist)( vlc_object_t *p_this )
free( psz_temp ); free( psz_temp );
} }
/* export all items in a flat format */ /* export the tree structure in <extension> */
fprintf( p_export->p_file, "\t<trackList>\n" ); fprintf( p_export->p_file, "\t<extension application=\"http://www.videolan.org/vlc/playlist/0\">\n" );
i_count = 0; i_count = 0;
for( i = 0; i < p_node->i_children; i++ ) for( i = 0; i < p_node->i_children; i++ )
{ {
xspf_export_item( p_node->pp_children[i], p_export->p_file, xspf_extension_item( p_node->pp_children[i], p_export->p_file,
&i_count ); &i_count );
} }
fprintf( p_export->p_file, "\t</trackList>\n" ); fprintf( p_export->p_file, "\t</extension>\n" );
/* export the tree structure in <extension> */ /* export all items in a flat format */
fprintf( p_export->p_file, "\t<extension application=\"http://www.videolan.org/vlc/playlist/0\">\n" ); fprintf( p_export->p_file, "\t<trackList>\n" );
i_count = 0; i_count = 0;
for( i = 0; i < p_node->i_children; i++ ) for( i = 0; i < p_node->i_children; i++ )
{ {
xspf_extension_item( p_node->pp_children[i], p_export->p_file, xspf_export_item( p_node->pp_children[i], p_export->p_file,
&i_count ); &i_count );
} }
fprintf( p_export->p_file, "\t</extension>\n" ); fprintf( p_export->p_file, "\t</trackList>\n" );
/* close the header elements */ /* close the header elements */
fprintf( p_export->p_file, "</playlist>\n" ); 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