+ free( psz );
+
+ /* -> the description */
+ psz = input_item_GetDescription( p_item->p_input );
+ if( psz == NULL ) psz = strdup( "" );
+ psz_temp = convert_xml_special_chars( psz );
+ free( psz );
+ if( *psz_temp )
+ {
+ fprintf( p_file, "\t\t\t<annotation>%s</annotation>\n", psz_temp );
+ }
+ free( psz_temp );
+
+ psz = input_item_GetArtURL( p_item->p_input );
+ if( psz == NULL ) psz = strdup( "" );
+ if( !EMPTY_STR( psz ) )
+ {
+ psz_uri = assertUTF8URI( psz );
+ fprintf( p_file, "\t\t\t<image>%s</image>\n", psz_uri );
+ free( psz_uri );
+ }
+ free( psz );
+
+ /* export the input's options (bookmarks, ...) in <extension> */
+ fprintf( p_file, "\t\t\t<extension application=\"http://www.videolan.org/vlc/playlist/0\">\n" );
+ for( i = 0; i < p_item->p_input->i_options; i++ )
+ {
+ fprintf( p_file, "\t\t\t\t<option>%s</option>\n",
+ p_item->p_input->ppsz_options[i][0] == ':' ?
+ p_item->p_input->ppsz_options[i] + 1 :
+ p_item->p_input->ppsz_options[i] );
+ }
+ fprintf( p_file, "\t\t\t</extension>\n" );