}
else if( !strcmp( psz_name, "image" ) )
{
- const char *psz_uri = decode_URI_duplicate( psz_value );
+ char *psz_uri = decode_URI_duplicate( psz_value );
input_item_SetArtURL( p_input, psz_uri );
free( psz_uri );
}
/* attribute: title */
if( !strcmp( psz_name, "title" ) )
{
- psz_title = unescape_URI_duplicate( psz_value );
+ psz_title = decode_URI_duplicate( psz_value );
}
/* extension attribute: application */
else if( !strcmp( psz_name, "application" ) )
msg_Warn( p_demux, "<node> requires \"title\" attribute" );
return VLC_FALSE;
}
-
- p_new_input = input_ItemNewWithType( p_playlist, "", psz_title,
- 0, NULL, -1, ITEM_TYPE_DIRECTORY );
+ p_new_input = input_ItemNewWithType( VLC_OBJECT( p_playlist ), "",
+ psz_title, 0, NULL, -1, ITEM_TYPE_DIRECTORY );
if( p_new_input )
{
input_ItemAddSubItem( p_input_item, p_new_input );
#include <vlc_input.h>
#include <vlc_meta.h>
#include <vlc_strings.h>
+#include <vlc_url.h>
#include <vlc_charset.h>
#include "xspf.h"
{
int i;
char *psz_temp;
- psz_temp = convert_xml_special_chars( p_item->p_input->psz_name );
+ psz_temp = encode_URI_component( p_item->p_input->psz_name );
fprintf( p_file, "\t\t<node title=\"%s\">\n",
*psz_temp ? psz_temp : "" );
free( psz_temp );