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

Anatoliy Anischovich git at videolan.org
Mon Mar 17 18:12:15 CET 2014


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

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

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 17dd86ef1d3a6244b2817b14ca3b390bfc50201f)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=3d23d2d01504df73a1a3863598147b7d4ded1a2b
---

 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 8606759..db7cc7f 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