[vlc-commits] http: XML-decode Icy meta infos (fixes #12739)
Rémi Denis-Courmont
git at videolan.org
Sat Nov 29 12:03:26 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 9 20:10:03 2014 +0200| [79e5fa67e941bdf654aaf2540a35c865d2c9188d] | committer: Jean-Baptiste Kempf
http: XML-decode Icy meta infos (fixes #12739)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=79e5fa67e941bdf654aaf2540a35c865d2c9188d
---
modules/access/http.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/access/http.c b/modules/access/http.c
index 6148b95..ee5a875 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -1425,6 +1425,8 @@ static int Request( access_t *p_access, uint64_t i_tell )
p_sys->psz_icy_name = EnsureUTF8( psz_tmp );
if( !p_sys->psz_icy_name )
free( psz_tmp );
+ else
+ resolve_xml_special_chars( p_sys->psz_icy_name );
msg_Dbg( p_access, "Icy-Name: %s", p_sys->psz_icy_name );
input_thread_t *p_input = access_GetParentInput( p_access );
if ( p_input )
@@ -1446,6 +1448,8 @@ static int Request( access_t *p_access, uint64_t i_tell )
p_sys->psz_icy_genre = EnsureUTF8( psz_tmp );
if( !p_sys->psz_icy_genre )
free( psz_tmp );
+ else
+ resolve_xml_special_chars( p_sys->psz_icy_genre );
msg_Dbg( p_access, "Icy-Genre: %s", p_sys->psz_icy_genre );
input_thread_t *p_input = access_GetParentInput( p_access );
if( p_input )
More information about the vlc-commits
mailing list