[vlc-commits] playlist demux: do not set empty art URL

Rémi Denis-Courmont git at videolan.org
Fri Aug 15 17:33:48 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 15 18:02:18 2014 +0300| [9f507dec83c5ebdcad3baa2bf20be60d0ede82a2] | committer: Rémi Denis-Courmont

playlist demux: do not set empty art URL

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f507dec83c5ebdcad3baa2bf20be60d0ede82a2
---

 modules/demux/playlist/podcast.c |    2 +-
 modules/demux/playlist/xspf.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/playlist/podcast.c b/modules/demux/playlist/podcast.c
index b0c44d9..3c52803 100644
--- a/modules/demux/playlist/podcast.c
+++ b/modules/demux/playlist/podcast.c
@@ -210,7 +210,7 @@ static int Demux( demux_t *p_demux )
                 }
                 else
                 {
-                    if( !strcmp( psz_elname, "url" ) )
+                    if( !strcmp( psz_elname, "url" ) && *node )
                     {
                         free( psz_art_url );
                         psz_art_url = strdup( node );
diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index a58782b..dc84a6b 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -547,7 +547,7 @@ static bool set_item_info SIMPLE_INTERFACE
         input_item_SetDescription(p_input, psz_value);
     else if (!strcmp(psz_name, "info"))
         input_item_SetURL(p_input, psz_value);
-    else if (!strcmp(psz_name, "image"))
+    else if (!strcmp(psz_name, "image") && *psz_value)
         input_item_SetArtURL(p_input, psz_value);
     return true;
 }



More information about the vlc-commits mailing list