]> git.sesse.net Git - vlc/commitdiff
xspf: don't use %encoding for node title, but only convert XML special characters
authorRafaël Carré <funman@videolan.org>
Sun, 18 Nov 2007 18:19:30 +0000 (18:19 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 18 Nov 2007 18:19:30 +0000 (18:19 +0000)
modules/demux/playlist/xspf.c
modules/misc/playlist/xspf.c

index e2c1c92fcd442a0fd99c33a2b18e9db5318d6c29..913df304d678d6a9c1d25b0ffe84a4d75afd0342 100644 (file)
@@ -676,7 +676,8 @@ static vlc_bool_t parse_extension_node COMPLEX_INTERFACE
         /* attribute: title */
         if( !strcmp( psz_name, "title" ) )
         {
-            psz_title = decode_URI_duplicate( psz_value );
+            resolve_xml_special_chars( psz_value );
+            psz_title = strdup( psz_value );
         }
         /* extension attribute: application */
         else if( !strcmp( psz_name, "application" ) )
index 02d603ca87b30d244a3036fbdba83a2a3227960c..bc2e119f1097c4f78842466aff6d3d7768bc9632 100644 (file)
@@ -251,7 +251,7 @@ static void xspf_extension_item( playlist_item_t *p_item, FILE *p_file,
     {
         int i;
         char *psz_temp;
-        psz_temp = encode_URI_component( p_item->p_input->psz_name );
+        psz_temp = convert_xml_special_chars( p_item->p_input->psz_name );
         fprintf( p_file, "\t\t<node title=\"%s\">\n",
                  *psz_temp ? psz_temp : "" );
         free( psz_temp );