From 933d7b13ffe892930f7505aef7a9f7d37662f131 Mon Sep 17 00:00:00 2001 From: Christophe Mutricy Date: Wed, 25 Oct 2006 11:53:38 +0000 Subject: [PATCH] Compile fix + handle case with no xml:base --- modules/demux/playlist/xspf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c index d4fe4af3c7..89dcd9a814 100644 --- a/modules/demux/playlist/xspf.c +++ b/modules/demux/playlist/xspf.c @@ -533,7 +533,8 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE if( psz_uri ) { - if( !strstr( psz_uri, "://" ) ) + if( p_demux->p_sys->psz_base && + !strstr( psz_uri, "://" ) ) { char* psz_tmp = malloc( strlen(p_demux->p_sys->psz_base) + @@ -541,7 +542,7 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE if( !psz_tmp ) { msg_Err( p_demux, "out of memory"); - return ENOMEM; + return VLC_FALSE; } sprintf( psz_tmp, "%s%s", p_demux->p_sys->psz_base, psz_uri ); -- 2.39.5