Commit 75c93cb2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Xspf: fix crash

See http://forum.videolan.org/viewtopic.php?f=12&t=96883
(cherry picked from commit 4c21c650)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 725db369
......@@ -221,7 +221,7 @@ static bool parse_playlist_node COMPLEX_INTERFACE
/* attribute: xmlns */
else if (!strcmp(name, "xmlns") || !strcmp(name, "xmlns:vlc"))
;
else if (!strcmp(name, "xml:base"))
else if (!strcmp(name, "xml:base") && psz_value)
{
free(p_demux->p_sys->psz_base);
p_demux->p_sys->psz_base = strdup(psz_value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment