[vlc-devel] [PATCH] demux: Fix XSPF xml:base parsing (#5697)

Anatoliy Anischovich lin.aaa.lin at gmail.com
Sat Mar 15 21:42:28 CET 2014


From: ZipFile <lin.aaa.lin at gmail.com>

---
 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
-- 
1.9.0




More information about the vlc-devel mailing list