playlist demux: do not set empty art URL
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 15 Aug 2014 15:02:18 +0000 (18:02 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 15 Aug 2014 15:33:48 +0000 (18:33 +0300)
modules/demux/playlist/podcast.c
modules/demux/playlist/xspf.c

index b0c44d9..3c52803 100644 (file)
@@ -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 );
index a58782b..dc84a6b 100644 (file)
@@ -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;
 }