xspf: try to produce valid XSPF files (there's still a problem with URI %-encoding)
[vlc.git] / modules / demux / playlist / xspf.c
index 1bdf9e1..50c88bf 100644 (file)
@@ -636,7 +636,9 @@ static vlc_bool_t set_item_info SIMPLE_INTERFACE
     }
     else if( !strcmp( psz_name, "image" ) )
     {
-        input_item_SetArtURL( p_input, psz_value );
+        const char *psz_uri = decode_URI_duplicate( psz_value );
+        input_item_SetArtURL( p_input, psz_uri );
+        free( psz_uri );
     }
     return VLC_TRUE;
 }