Changeset 6bc1500f97bf158ec4160570ff3d6173f8f67dc4

Show
Ignore:
Timestamp:
14/06/06 04:00:42 (2 years ago)
Author:
Yoann Peronneau <yoann@videolan.org>
git-committer:
Yoann Peronneau <yoann@videolan.org> 1150250442 +0000
git-parent:

[37b5af493075f95769ee26ed583f2b0f43c6d3b7]

git-author:
Yoann Peronneau <yoann@videolan.org> 1150250442 +0000
Message:

* xpsf.c: ...but <playlist> has... grmbl

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/misc/playlist/xspf.c

    r37b5af4 r6bc1500  
    4545    const playlist_export_t *p_export = 
    4646        (playlist_export_t *)p_playlist->p_private; 
    47     int i, i_count; 
     47    int               i, i_count; 
     48    char             *psz_temp; 
    4849    playlist_item_t  *p_node = p_export->p_root; 
    4950 
     
    5455 
    5556    if( !p_node ) return VLC_SUCCESS; 
     57 
     58    /* save name of the playlist node */ 
     59    psz_temp = convert_xml_special_chars( p_node->p_input->psz_name ); 
     60    if( *psz_temp ) 
     61    { 
     62        fprintf(  p_export->p_file, "\t<title>%s</title>\n", psz_temp ); 
     63    } 
     64    free( psz_temp ); 
     65 
     66    /* save location of the playlist node */ 
     67    psz_temp = assertUTF8URI( p_export->psz_filename ); 
     68    if( psz_temp && *psz_temp ) 
     69    { 
     70        fprintf( p_export->p_file, "\t<location>%s</location>\n", psz_temp ); 
     71        free( psz_temp ); 
     72    } 
    5673 
    5774    /* export all items in a flat format */