It fixes bug #9311 and resolves xml special chars on several other xml based playlist format (b4s, podcast, shoutcast, qtl).
#include <vlc_common.h>
#include <vlc_demux.h>
#include <vlc_xml.h>
+#include <vlc_strings.h>
#include "playlist.h"
// Read the element name
if( !strcmp( node, "entry" ) )
{
+ resolve_xml_special_chars( psz_mrl );
p_input = input_item_New( psz_mrl, psz_title );
if( psz_now )
input_item_SetNowPlaying( p_input, psz_now );
#include "playlist.h"
#include <vlc_xml.h>
+#include <vlc_strings.h>
/*****************************************************************************
* Local prototypes
continue;
}
+ resolve_xml_special_chars( psz_item_mrl );
+ resolve_xml_special_chars( psz_item_name );
p_input = input_item_New( psz_item_mrl, psz_item_name );
FREENULL( psz_item_mrl );
FREENULL( psz_item_name );
/* Add the global art url to this item, if any */
if( psz_art_url )
+ {
+ resolve_xml_special_chars( psz_art_url );
input_item_SetArtURL( p_input, psz_art_url );
+ }
if( psz_item_size )
{
#include "playlist.h"
#include <vlc_xml.h>
+#include <vlc_strings.h>
typedef enum { FULLSCREEN_NORMAL,
FULLSCREEN_DOUBLE,
vlc_gc_decref( p_input );
if( psz_qtnext )
{
+ resolve_xml_special_chars( psz_qtnext );
p_input = input_item_New( psz_qtnext, NULL );
input_item_node_AppendItem( p_subitems, p_input );
vlc_gc_decref( p_input );
#include "playlist.h"
#include <vlc_xml.h>
+#include <vlc_strings.h>
/* duplicate from modules/services_discovery/shout.c */
#define SHOUTCAST_BASE_URL "http/shout-winamp://www.shoutcast.com/sbin/newxml.phtml"
psz_name ) != -1 )
{
input_item_t *p_input;
+ resolve_xml_special_chars( psz_mrl );
p_input = input_item_New( psz_mrl, psz_name );
input_item_CopyOptions( p_input_node->p_item, p_input );
free( psz_mrl );
/* Create the item */
input_item_t *p_input;
+ resolve_xml_special_chars( psz_mrl );
p_input = input_item_New( psz_mrl, psz_name );
input_item_CopyOptions( p_input_node->p_item, p_input );
free( psz_mrl );
#include <vlc_common.h>
#include <vlc_demux.h>
+#include <vlc_strings.h>
#include "playlist.h"
input_item_t *p_input;
*psz_parse = '\0';
+ resolve_xml_special_chars( psz_uri );
psz_uri = ProcessMRL( psz_uri, p_demux->p_sys->psz_prefix );
p_input = input_item_NewExt( psz_uri, psz_uri,
0, NULL, 0, -1 );