Skip to content

Commit

Permalink
* xspf.c: export item description as <annotation>
Browse files Browse the repository at this point in the history
  • Loading branch information
yoann committed May 20, 2007
1 parent af0e8e1 commit 971b8d4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/misc/playlist/xspf.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,18 @@ static void xspf_export_item( playlist_item_t *p_item, FILE *p_file,
free( psz );
}

/* -> the description */
psz = p_item->p_input->p_meta->psz_description ?
strdup( p_item->p_input->p_meta->psz_description ):
strdup( "" );
psz_temp = convert_xml_special_chars( psz );
if( psz ) free( psz );
if( *psz_temp )
{
fprintf( p_file, "\t\t\t<annotation>%s</annotation>\n", psz_temp );
}
free( psz_temp );

xspfexportitem_end:
/* -> the duration */
if( p_item->p_input->i_duration > 0 )
Expand Down

0 comments on commit 971b8d4

Please sign in to comment.