Changeset 37b5af493075f95769ee26ed583f2b0f43c6d3b7
- Timestamp:
- 14/06/06 03:51:05
(2 years ago)
- Author:
- Yoann Peronneau <yoann@videolan.org>
- git-committer:
- Yoann Peronneau <yoann@videolan.org> 1150249865 +0000
- git-parent:
[9526c4781b741555b9b90ae5d5a4cfa87e71a878]
- git-author:
- Yoann Peronneau <yoann@videolan.org> 1150249865 +0000
- Message:
* xspf.c: <trackList> has no <location> or <title> element
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rdbc59e3 |
r37b5af4 |
|
| 45 | 45 | const playlist_export_t *p_export = |
|---|
| 46 | 46 | (playlist_export_t *)p_playlist->p_private; |
|---|
| 47 | | int i; |
|---|
| 48 | | char *psz_temp; |
|---|
| 49 | | playlist_item_t **pp_items = NULL; |
|---|
| 50 | | int i_size; |
|---|
| | 47 | int i, i_count; |
|---|
| 51 | 48 | playlist_item_t *p_node = p_export->p_root; |
|---|
| 52 | | int i_count; |
|---|
| 53 | 49 | |
|---|
| 54 | 50 | /* write XSPF XML header */ |
|---|
| … | … | |
| 58 | 54 | |
|---|
| 59 | 55 | if( !p_node ) return VLC_SUCCESS; |
|---|
| 60 | | |
|---|
| 61 | | pp_items = p_node->pp_children; |
|---|
| 62 | | i_size = p_node->i_children; |
|---|
| 63 | | |
|---|
| 64 | | /* save name of the playlist node */ |
|---|
| 65 | | psz_temp = convert_xml_special_chars( p_node->p_input->psz_name ); |
|---|
| 66 | | if( *psz_temp ) |
|---|
| 67 | | { |
|---|
| 68 | | fprintf( p_export->p_file, "\t<title>%s</title>\n", psz_temp ); |
|---|
| 69 | | } |
|---|
| 70 | | free( psz_temp ); |
|---|
| 71 | | |
|---|
| 72 | | /* save location of the playlist node */ |
|---|
| 73 | | psz_temp = assertUTF8URI( p_export->psz_filename ); |
|---|
| 74 | | if( psz_temp && *psz_temp ) |
|---|
| 75 | | { |
|---|
| 76 | | fprintf( p_export->p_file, "\t<location>%s</location>\n", psz_temp ); |
|---|
| 77 | | free( psz_temp ); |
|---|
| 78 | | } |
|---|
| 79 | 56 | |
|---|
| 80 | 57 | /* export all items in a flat format */ |
|---|