vlc/vlc-1.2 | branch: master | Jean-Baptiste Kempf <[email protected]> | 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 <[email protected]>

> 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);

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to