[vlc-commits] demux: Fix XSPF xml:base parsing (fixes #5697)

Anatoliy Anischovich git at videolan.org
Mon Mar 17 18:11:26 CET 2014


vlc | branch: master | Anatoliy Anischovich <lin.aaa.lin at gmail.com> | Sat Mar 15 22:42:28 2014 +0200| [17dd86ef1d3a6244b2817b14ca3b390bfc50201f] | committer: Rémi Denis-Courmont

demux: Fix XSPF xml:base parsing (fixes #5697)

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17dd86ef1d3a6244b2817b14ca3b390bfc50201f
---

 modules/demux/playlist/xspf.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index 11919bc..afd9237 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -213,10 +213,10 @@ static bool parse_playlist_node COMPLEX_INTERFACE
         /* attribute: xmlns */
         else if (!strcmp(name, "xmlns") || !strcmp(name, "xmlns:vlc"))
             ;
-        else if (!strcmp(name, "xml:base") && psz_value)
+        else if (!strcmp(name, "xml:base"))
         {
             free(p_demux->p_sys->psz_base);
-            p_demux->p_sys->psz_base = strdup(psz_value);
+            p_demux->p_sys->psz_base = strdup(value);
         }
         /* unknown attribute */
         else



More information about the vlc-commits mailing list