[vlc-commits] Xspf: fix crash
Jean-Baptiste Kempf
git at videolan.org
Thu Jan 5 00:51:18 CET 2012
vlc/vlc-1.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jan 4 19:37:59 2012 +0100| [75c93cb2bad39a72a3c6251cdac3b6206f8c78ca] | committer: Jean-Baptiste Kempf
Xspf: fix crash
See http://forum.videolan.org/viewtopic.php?f=12&t=96883
(cherry picked from commit 4c21c6506d93a9cf92992bf302a53ad77ddf7829)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=75c93cb2bad39a72a3c6251cdac3b6206f8c78ca
---
modules/demux/playlist/xspf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index c1ebf34..6edee56 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -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);
More information about the vlc-commits
mailing list